Module: Fog::Terremark::Shared::Common
Overview
Commond methods shared by Real and Mock
Instance Method Summary collapse
-
#default_organization_id ⇒ Object
TODO: bust cache on organization creation?.
Instance Method Details
#default_organization_id ⇒ Object
TODO: bust cache on organization creation?
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/terremark/shared.rb', line 9 def default_organization_id @default_organization_id ||= begin org_list = get_organizations.body['OrgList'] if org_list.length == 1 org_list.first['href'].split('/').last.to_i else nil end end end |