class Commercelayer::CLI::Base

Public Instance Methods

bootstrap() click to toggle source
# File lib/commercelayer/cli.rb, line 28
def bootstrap
  destination = ask "What is your destination?", limited_to: ["contentful", "datocms", "csv"]
  bootstrap_data!(destination)
end
export(destination) click to toggle source
# File lib/commercelayer/cli.rb, line 34
def export(destination)
  destination ||= ask "What is your destination?", limited_to: ["contentful", "datocms", "csv"]
  export_data!(destination)
end
init() click to toggle source
# File lib/commercelayer/cli.rb, line 21
def init
  create_file(config_path) do
    config_data_template
  end
end