Sha256: 28c7a8cb5ccd599dc58a8943d79d8f5ce309000ab0035248a76df26fa1e8ca06
Contents?: true
Size: 838 Bytes
Versions: 59
Compression:
Stored size: 838 Bytes
Contents
class VcloudDirector module Compute module Helper def self.test_name @test_name ||= 'fog-test-%x' % Time.now.to_i end def self.fixture(filename) File.join(File.expand_path('../../../fixtures', __FILE__), filename) end def self.current_org(service) service.get_organization(current_org_id(service)).body end def self.current_org_id(service) session = service.get_current_session.body link = session[:Link].find do |l| l[:type] == 'application/vnd.vmware.vcloud.org+xml' end link[:href].split('/').last end def self.first_vdc_id(org) link = org[:Link].find do |l| l[:type] == 'application/vnd.vmware.vcloud.vdc+xml' end link[:href].split('/').last end end end end
Version data entries
59 entries across 57 versions & 7 rubygems