Sha256: 9e6c9166d2b4fafee1dcb8d8e9c4e5f46a9e07b7a9485f977b7ba4a6bc0b4b91

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

Stored size: 1.04 KB

Contents

module Fog
  module VcloudDirector
    class Compute
      class VmCustomization < Model
        identity  :id

        attribute :type
        attribute :href
        attribute :enabled
        attribute :change_sid
        attribute :join_domain_enabled
        attribute :use_org_settings
        attribute :admin_password_auto
        attribute :admin_password
        attribute :admin_password_enabled
        attribute :reset_password_required
        attribute :virtual_machine_id
        attribute :computer_name
        attribute :has_customization_script

        # bug: for some reason if the customization_script has /r, is showed
        # here as /n. Looks likes is something in excon
        def script
          attributes[:customization_script]
        end

        def script=(new_script)
          attributes[:customization_script] = new_script
        end

        def save
          response = service.put_guest_customization_section_vapp(id, attributes)
          service.process_task(response.body)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-vcloud-director-0.3.1 lib/fog/vcloud_director/models/compute/vm_customization.rb
fog-vcloud-director-0.3.0 lib/fog/vcloud_director/models/compute/vm_customization.rb