Class: Vagrant::Machine

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-vcloud.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#vappidObject

Returns the value of attribute vappid.



21
22
23
# File 'lib/vagrant-vcloud.rb', line 21

def vappid
  @vappid
end

Instance Method Details

#get_vapp_idvAppId

This returns the vCloud Director vApp ID.

Returns:

  • (vAppId)


54
55
56
57
58
59
60
61
# File 'lib/vagrant-vcloud.rb', line 54

def get_vapp_id
  vappid_file = @data_dir.join('../../../vcloud_vappid')
  if vappid_file.file?
    @vappid = vappid_file.read
  else
    nil
  end
end