Class: Commercelayer::CLI::Base
- Inherits:
-
Thor
- Object
- Thor
- Commercelayer::CLI::Base
show all
- Includes:
- Exporters, Helpers, Thor::Actions
- Defined in:
- lib/commercelayer/cli.rb
Instance Method Summary
collapse
Methods included from Exporters
#export_data!
Methods included from Helpers
#commercelayer_client, #config_data, #config_data_template, #config_path
Instance Method Details
#export ⇒ Object
25
26
27
28
|
# File 'lib/commercelayer/cli.rb', line 25
def export
destination = ask "What is your destination?", limited_to: ["contentful", "datocms", "csv"]
export_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
|