Class: EY::Serverside::Spawner::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/engineyard-serverside/spawner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command, success, output, server = nil) ⇒ Result

Returns a new instance of Result.



170
171
172
173
174
175
# File 'lib/engineyard-serverside/spawner.rb', line 170

def initialize(command, success, output, server = nil)
  @command = command
  @success = success
  @output = output
  @server = server
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



169
170
171
# File 'lib/engineyard-serverside/spawner.rb', line 169

def command
  @command
end

#outputObject (readonly)

Returns the value of attribute output.



169
170
171
# File 'lib/engineyard-serverside/spawner.rb', line 169

def output
  @output
end

#serverObject (readonly)

Returns the value of attribute server.



169
170
171
# File 'lib/engineyard-serverside/spawner.rb', line 169

def server
  @server
end

#successObject (readonly) Also known as: success?

Returns the value of attribute success.



169
170
171
# File 'lib/engineyard-serverside/spawner.rb', line 169

def success
  @success
end

Instance Method Details

#inspectObject



178
179
180
181
182
183
# File 'lib/engineyard-serverside/spawner.rb', line 178

def inspect
  <<-EOM
$ #{success? ? "(success)" : "(failed)"} #{command}
#{output}
  EOM
end