Class: Cloudpassage::Command

Inherits:
Single show all
Defined in:
lib/cloudpassage/servers.rb

Defined Under Namespace

Classes: Error

Instance Attribute Summary

Attributes inherited from Single

#id

Instance Method Summary collapse

Methods inherited from Single

#destroy, #get, #initialize

Methods inherited from Base

#[], #data, #exists?, #headers, #initialize, #method_missing, #object_symbol, #post, #put, #reload, #wait_for

Constructor Details

This class inherits a constructor from Cloudpassage::Single

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Cloudpassage::Base

Instance Method Details

#done?Boolean

Returns:

  • (Boolean)


151
152
153
154
155
# File 'lib/cloudpassage/servers.rb', line 151

def done?
  reload
  fail Error.new(self.result) if status == 'failed'
  'completed' == status
end