Class: VCloudSdk::Xml::VAppTemplate

Inherits:
VApp show all
Defined in:
lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp_template.rb

Instance Method Summary collapse

Methods inherited from VApp

#description, #discard_state, #network_config_section, #reboot_link, #recompose_vapp_link, #tasks, #vdc_link, #vm, #vms

Methods inherited from Wrapper

#==, #[], #[]=, #add_child, #attribute, #content, #content=, #create_child, #create_qualified_name, #create_xpath_query, #doc_namespaces, #edit_link, #get_nodes, #href, #href=, #href_id, #initialize, #name, #name=, #power_off_link, #power_on_link, #remove_link, #running_tasks, #to_s, #type, #type=, #undeploy_link, #urn, #xpath

Constructor Details

This class inherits a constructor from VCloudSdk::Xml::Wrapper

Instance Method Details

#filesObject



5
6
7
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp_template.rb', line 5

def files
  get_nodes("File")
end

#incomplete_filesObject

Files that have not finished transferring



10
11
12
13
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp_template.rb', line 10

def incomplete_files
  files.find_all {|f| f["size"].to_i < 0 ||
    (f["size"].to_i > f["bytesTransferred"].to_i)}
end