Class: SolidusClient::CLI
- Inherits:
-
Object
- Object
- SolidusClient::CLI
- Defined in:
- lib/solidus_client/cli.rb
Overview
The class responsible of handling command line logic
Instance Method Summary collapse
-
#run ⇒ Object
Entry point to start the application.
Instance Method Details
#run ⇒ Object
Entry point to start the application
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/solidus_client/cli.rb', line 12 def run client = Client.new() command = ARGV.shift.to_sym args = convert_data_input result = client.send(command, *args) pp result rescue OptionParser::InvalidOption => e abort("#{e.message}, see 'solidus --help'") end |