Sha256: 33812bbef02470c79f7b69c94d259e915b27ad768bc866f7837052f580e0eb83
Contents?: true
Size: 869 Bytes
Versions: 2
Compression:
Stored size: 869 Bytes
Contents
module Cfer::Core::Fn class << self def join(sep, *args) {"Fn::Join" => [sep, [ *args ].flatten ]} end def ref(r) {"Ref" => r} end def get_att(r, att) {"Fn::GetAtt" => [r, att]} end def find_in_map(map_name, key1, key2) {"Fn::FindInMap" => [map_name, key1, key2]} end def select(i, o) {"Fn::Select" => [i, o]} end def base64(v) {"Fn::Base64" => v} end def condition(cond) {"Condition" => cond} end def and(*conds) {"Fn::And" => conds} end def or(*conds) {"Fn::Or" => conds} end def equals(a, b) {"Fn::Equals" => [a, b]} end def if(cond, t, f) {"Fn::If" => [cond, t, f]} end def not(cond) {"Fn::Not" => [cond]} end def get_azs(region) {"Fn::GetAZs" => region} end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cfer-0.4.2 | lib/cfer/core/fn.rb |
cfer-0.4.1 | lib/cfer/core/fn.rb |