Class: VCloudCloud::Steps::Delete
- Inherits:
-
VCloudCloud::Step
- Object
- VCloudCloud::Step
- VCloudCloud::Steps::Delete
- Defined in:
- lib/cloud/vcloud/steps/delete.rb
Instance Attribute Summary
Attributes inherited from VCloudCloud::Step
Instance Method Summary collapse
Methods inherited from VCloudCloud::Step
#cleanup, #initialize, #rollback
Constructor Details
This class inherits a constructor from VCloudCloud::Step
Instance Method Details
#perform(entity, force = false, &block) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/cloud/vcloud/steps/delete.rb', line 4 def perform(entity, force = false, &block) entity = client.reload entity link = entity.remove_link force raise "#{entity.name} can't be removed" unless link client.invoke_and_wait :delete, link end |