Method: Vcloud::Core::Vapp#vdc_id
- Defined in:
- lib/vcloud/core/vapp.rb
#vdc_id ⇒ String
Return the ID of the vDC containing vApp
82 83 84 85 |
# File 'lib/vcloud/core/vapp.rb', line 82 def vdc_id link = vcloud_attributes[:Link].detect { |l| l[:rel] == Fog::RELATION::PARENT && l[:type] == Fog::ContentTypes::VDC } link ? link[:href].split('/').last : raise('a vapp without parent vdc found') end |