Class: Kitchen::Command::Base
- Inherits:
-
Object
- Object
- Kitchen::Command::Base
- Includes:
- Logging
- Defined in:
- lib/kitchen/command.rb
Overview
Base class for CLI commands.
Instance Method Summary collapse
-
#initialize(cmd_args, cmd_options, options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(cmd_args, cmd_options, options = {}) ⇒ Base
Returns a new instance of Base.
32 33 34 35 36 37 38 39 40 |
# File 'lib/kitchen/command.rb', line 32 def initialize(cmd_args, , = {}) @args = cmd_args = @action = .fetch(:action, nil) @help = .fetch(:help, lambda { "No help provided" }) @config = .fetch(:config, nil) @loader = .fetch(:loader, nil) @shell = .fetch(:shell) end |