Class: Fog::Compute::VcloudDirector::VmCustomization
- Defined in:
- lib/fog/vcloud_director/models/compute/vm_customization.rb
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
- #save ⇒ Object
-
#script ⇒ Object
bug: for some reason if the customization_script has /r, is showed here as /n.
- #script=(new_script) ⇒ Object
Methods inherited from Model
#initialize, #inspect, #lazy_load_attrs, #make_attr_loaded_method, #make_lazy_load_method
Methods inherited from Model
#initialize, #inspect, #reload, #symbolize_keys, #to_json, #wait_for
Methods included from Attributes::ClassMethods
#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes
Methods included from Fog::Core::DeprecatedConnectionAccessors
#connection, #connection=, #prepare_service_value
Methods included from Attributes::InstanceMethods
#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #persisted?, #requires, #requires_one
Constructor Details
This class inherits a constructor from Fog::Compute::VcloudDirector::Model
Instance Method Details
#save ⇒ Object
35 36 37 38 |
# File 'lib/fog/vcloud_director/models/compute/vm_customization.rb', line 35 def save response = service.put_guest_customization_section_vapp(id, attributes) service.process_task(response.body) end |
#script ⇒ Object
bug: for some reason if the customization_script has /r, is showed here as /n. Looks likes is something in excon
27 28 29 |
# File 'lib/fog/vcloud_director/models/compute/vm_customization.rb', line 27 def script attributes[:customization_script] end |
#script=(new_script) ⇒ Object
31 32 33 |
# File 'lib/fog/vcloud_director/models/compute/vm_customization.rb', line 31 def script=(new_script) attributes[:customization_script] = new_script end |