Class: Fog::Vcloud::Compute::Vapp

Inherits:
Model
  • Object
show all
Includes:
Helpers::Status
Defined in:
lib/fog/vcloud/models/compute/vapp.rb

Instance Method Summary collapse

Methods included from Helpers::Status

#friendly_status, #off?, #on?

Instance Method Details

#networksObject


33
34
35
36
37
38
# File 'lib/fog/vcloud/models/compute/vapp.rb', line 33

def networks
  @networks ||= Fog::Vcloud::Compute::Networks.
    new( :service => service,
         :href => href
    )
end

#ready?Boolean

Returns:

  • (Boolean)

40
41
42
43
# File 'lib/fog/vcloud/models/compute/vapp.rb', line 40

def ready?
  reload_status # always ensure we have the correct status
  status != '0'
end

#serversObject


25
26
27
28
29
30
31
# File 'lib/fog/vcloud/models/compute/vapp.rb', line 25

def servers
  @servers ||= Fog::Vcloud::Compute::Servers.
    new( :service => service,
         :href => href,
         :vapp => self
    )
end