Class: Skewer::ErsatzSSHResult

Inherits:
Object
  • Object
show all
Defined in:
lib/ersatz/ssh_result.rb

Overview

fakes a fog SSH result

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command, stdout, status) ⇒ ErsatzSSHResult

Returns a new instance of ErsatzSSHResult.



8
9
10
11
12
13
# File 'lib/ersatz/ssh_result.rb', line 8

def initialize(command, stdout, status)
  @command = command
  @stdout = stdout
  @status = status
  Skewer.logger.debug self.stdout
end

Instance Attribute Details

#commandObject

Returns the value of attribute command.



6
7
8
# File 'lib/ersatz/ssh_result.rb', line 6

def command
  @command
end

#statusObject

Returns the value of attribute status.



6
7
8
# File 'lib/ersatz/ssh_result.rb', line 6

def status
  @status
end

#stdoutObject

Returns the value of attribute stdout.



6
7
8
# File 'lib/ersatz/ssh_result.rb', line 6

def stdout
  @stdout
end