Class: VCloudSdk::Xml::VAppTemplate
- Defined in:
- lib/cloud/vcloud/xml/wrapper_classes/vapp_template.rb
Instance Method Summary collapse
- #files ⇒ Object
-
#incomplete_files ⇒ Object
Files that have not finished transferring.
Methods inherited from VApp
#cancel_link, #description, #discard_state, #network_config_section, #power_off_link, #power_on_link, #prerunning_tasks, #reboot_link, #recompose_vapp_link, #remove_link, #running_tasks, #tasks, #undeploy_link, #vm, #vms
Methods inherited from Wrapper
#==, #[], #[]=, #add_child, #attribute_with_ns, #content, #content=, #create_child, #create_qualified_name, #create_xpath_query, #doc_namespaces, #error, #get_nodes, #href, #href_id, #initialize, #name, #name=, #to_s, #type, #urn, #xpath
Constructor Details
This class inherits a constructor from VCloudSdk::Xml::Wrapper
Instance Method Details
#files ⇒ Object
5 6 7 |
# File 'lib/cloud/vcloud/xml/wrapper_classes/vapp_template.rb', line 5 def files get_nodes("File") end |
#incomplete_files ⇒ Object
Files that have not finished transferring
10 11 12 13 |
# File 'lib/cloud/vcloud/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 |