Class: Kitchen::LoginCommand

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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, options = {})
  @cmd_array = cmd_array
  @options = options
end

Instance Attribute Details

#cmd_arrayObject (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

#optionsObject (readonly)

Returns the value of attribute options.



27
28
29
# File 'lib/kitchen/login_command.rb', line 27

def options
  @options
end