Module: Nucleus::Adapters::V1::CloudFoundryV2::Regions
- Included in:
- Nucleus::Adapters::V1::CloudFoundryV2
- Defined in:
- lib/nucleus/adapters/v1/cloud_foundry_v2/regions.rb
Instance Method Summary collapse
Instance Method Details
#region(region_name) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/nucleus/adapters/v1/cloud_foundry_v2/regions.rb', line 12 def region(region_name) unless region_name.casecmp('default') == 0 fail Errors::AdapterResourceNotFoundError, "Region '#{region_name}' does not exist at the endpoint" end default_region end |
#regions ⇒ Object
7 8 9 |
# File 'lib/nucleus/adapters/v1/cloud_foundry_v2/regions.rb', line 7 def regions [default_region] end |