Class: IV::CLI::Command
- Inherits:
-
Object
- Object
- IV::CLI::Command
- Includes:
- Helpers::Errors, Mixlib::CLI
- Defined in:
- lib/iv-cli/command.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Class Method Summary collapse
Methods included from Helpers::Errors
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
7 8 9 |
# File 'lib/iv-cli/command.rb', line 7 def config @config end |
Class Method Details
.invalid_command?(command) ⇒ Boolean
13 14 15 |
# File 'lib/iv-cli/command.rb', line 13 def self.invalid_command? command ! commands.include? command end |
.run_command(args, options = {}) ⇒ Object
9 10 11 |
# File 'lib/iv-cli/command.rb', line 9 def self.run_command args, = {} command_class(args.shift).new.run(args, ) end |