Class: Commercelayer::CLI::Base
- Inherits:
-
Thor
- Object
- Thor
- Commercelayer::CLI::Base
show all
- Includes:
- Bootstrappers, Helpers, Thor::Actions
- Defined in:
- lib/commercelayer/cli.rb
Instance Method Summary
collapse
#bootstrap_data!
Methods included from Helpers
#commercelayer_client, #config_data, #config_data_template, #config_path
Instance Method Details
#bootstrap ⇒ Object
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
|
#init ⇒ Object
18
19
20
21
22
|
# File 'lib/commercelayer/cli.rb', line 18
def init
create_file(config_path) do
config_data_template
end
end
|