Class: Fission::CLI
Instance Method Summary collapse
-
#execute ⇒ Object
Internal: Execute the determined command.
-
#initialize(args = ARGV, parser = CommandLineParser) ⇒ CLI
constructor
Internal: Creates a new Fission::CLI object.
Constructor Details
#initialize(args = ARGV, parser = CommandLineParser) ⇒ CLI
13 14 15 16 17 18 19 |
# File 'lib/fission/cli.rb', line 13 def initialize(args=ARGV, parser=CommandLineParser) @args = args ||= ARGV @parser = parser.new @args parse_arguments end |