Class: Jellyfish::Fog::VMWare::Infrastructure
- Inherits:
-
Provisioner
- Object
- Provisioner
- Jellyfish::Fog::VMWare::Infrastructure
- Defined in:
- lib/jellyfish_fog/infrastructure.rb
Instance Attribute Summary
Attributes inherited from Provisioner
Instance Method Summary collapse
Methods inherited from Provisioner
critical_error, #details, #initialize, #payload_response_template, perform, provision, retire, warning_retirement_error
Constructor Details
This class inherits a constructor from Jellyfish::Provisioner
Instance Method Details
#provision ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/jellyfish_fog/infrastructure.rb', line 5 def provision server = nil handle_errors do server = connection.vm_clone(details) end server['new_vm'] = server['new_vm'].except('parent') @order_item.provision_status = :ok @order_item.payload_response = server.to_json end |