Class: Commercelayer::CLI::Base

Inherits:
Thor
  • Object
show all
Includes:
Bootstrappers, Helpers, Thor::Actions
Defined in:
lib/commercelayer/cli.rb

Instance Method Summary collapse

Methods included from Bootstrappers

#bootstrap_data!

Methods included from Helpers

#commercelayer_client, #config_data, #config_data_template, #config_path

Instance Method Details

#bootstrapObject



25
26
27
28
# File 'lib/commercelayer/cli.rb', line 25

def bootstrap
  destination = ask "What is your destination?", limited_to: ["contentful", "datocms", "csv"]
  bootstrap_data!(destination)
end

#initObject



18
19
20
21
22
# File 'lib/commercelayer/cli.rb', line 18

def init
  create_file(config_path) do
    config_data_template
  end
end