Sha256: fab29e50bb22457bc69fa055ab6f0dcab246469562727c7961f482b071493c76
Contents?: true
Size: 530 Bytes
Versions: 2
Compression:
Stored size: 530 Bytes
Contents
module VMC::Cli module InfraHelper class << self def base_for_infra(infra) infras.has_key?(infra) ? infras[infra][:base] : "aws.af.cm" end def valid?(infra) infra && infras.has_key?(infra) end private def infras { "ap-aws" => { :base => "ap01.aws.af.cm" }, "eu-aws" => { :base => "eu01.aws.af.cm" }, "rs" => { :base => "rs.af.cm" }, "aws" => { :base => "aws.af.cm" } } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
af-0.3.18.2 | lib/cli/infra_helper.rb |
af-0.3.18.1 | lib/cli/infra_helper.rb |