Class: VCloudCloud::Steps::LoadAgentEnv
- Inherits:
-
VCloudCloud::Step
- Object
- VCloudCloud::Step
- VCloudCloud::Steps::LoadAgentEnv
- Defined in:
- lib/cloud/vcloud/steps/load_agent_env.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(&block) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/cloud/vcloud/steps/load_agent_env.rb', line 6 def perform(&block) vm = state[:vm] = client.reload state[:vm] = "#{vm..href}/#{state[:env_metadata_key]}" = client.invoke :get, state[:env] = Yajl.load(.value || '{}') end |