Class: Kitchen::LoginCommand
- Inherits:
-
Object
- Object
- Kitchen::LoginCommand
- Defined in:
- lib/kitchen/login_command.rb
Overview
Value object to track a shell command that will be passed to Kernel.exec for execution.
Instance Attribute Summary collapse
-
#cmd_array ⇒ Object
readonly
Returns the value of attribute cmd_array.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(cmd_array, options = {}) ⇒ LoginCommand
constructor
A new instance of LoginCommand.
Constructor Details
#initialize(cmd_array, options = {}) ⇒ LoginCommand
Returns a new instance of LoginCommand.
29 30 31 32 |
# File 'lib/kitchen/login_command.rb', line 29 def initialize(cmd_array, = {}) @cmd_array = cmd_array @options = end |
Instance Attribute Details
#cmd_array ⇒ Object (readonly)
Returns the value of attribute cmd_array.
27 28 29 |
# File 'lib/kitchen/login_command.rb', line 27 def cmd_array @cmd_array end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
27 28 29 |
# File 'lib/kitchen/login_command.rb', line 27 def @options end |