Sha256: a275c79f3f1df9ab0417e388345506f521874558945774334c2ae9b59d7942bf
Contents?: true
Size: 845 Bytes
Versions: 1
Compression:
Stored size: 845 Bytes
Contents
module Nucleus module Adapters module V1 class CloudFoundryV2 < Stub module Regions # @see Stub#regions def regions [default_region] end # @see Stub#region def region(region_name) unless region_name.casecmp('default') == 0 raise Errors::AdapterResourceNotFoundError, "Region '#{region_name}' does not exist at the endpoint" end default_region end private def default_region { id: 'default', description: 'Default region, Cloud Foundry does not support multi regions yet.', created_at: Time.at(0).to_datetime, updated_at: Time.at(0).to_datetime } end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nucleus-0.3.1 | lib/nucleus/adapters/v1/cloud_foundry_v2/regions.rb |