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 ⇒ Array
readonly
Array of login command arguments.
-
#options ⇒ Hash
readonly
Options hash, passed to
Kernel#exec
.
Instance Method Summary collapse
-
#initialize(cmd_array, options = {}) ⇒ LoginCommand
constructor
Constructs a new LoginCommand instance.
Constructor Details
#initialize(cmd_array, options = {}) ⇒ LoginCommand
Constructs a new LoginCommand instance.
38 39 40 41 |
# File 'lib/kitchen/login_command.rb', line 38 def initialize(cmd_array, = {}) @cmd_array = Array(cmd_array) @options = end |
Instance Attribute Details
#cmd_array ⇒ Array (readonly)
Returns array of login command arguments.
28 29 30 |
# File 'lib/kitchen/login_command.rb', line 28 def cmd_array @cmd_array end |
#options ⇒ Hash (readonly)
Returns options hash, passed to Kernel#exec
.
31 32 33 |
# File 'lib/kitchen/login_command.rb', line 31 def @options end |