Module: CloudShaped::FunctionMethods
- Included in:
- DSL, Interpolation
- Defined in:
- lib/cloud_shaped/function_methods.rb
Instance Method Summary collapse
-
#fn_and(*conditions) ⇒ Object
Syntax sugar for Fn::And.
-
#fn_base64(arg) ⇒ Object
Syntax sugar for Fn::Base64.
-
#fn_equals(v1, v2) ⇒ Object
Syntax sugar for Fn::Equals.
-
#fn_if(condition, when_true, when_false) ⇒ Object
Syntax sugar for Fn::If.
-
#fn_join(separator, lines) ⇒ Object
Syntax sugar for Fn::Join.
-
#fn_not(cond) ⇒ Object
Syntax sugar for Fn::Not.
-
#fn_or(*conditions) ⇒ Object
Syntax sugar for Fn::Or.
Instance Method Details
#fn_and(*conditions) ⇒ Object
Syntax sugar for Fn::And.
23 24 25 26 27 |
# File 'lib/cloud_shaped/function_methods.rb', line 23 def fn_and(*conditions) { "Fn::And" => conditions } end |
#fn_base64(arg) ⇒ Object
Syntax sugar for Fn::Base64.
7 8 9 |
# File 'lib/cloud_shaped/function_methods.rb', line 7 def fn_base64(arg) { "Fn::Base64" => arg } end |
#fn_equals(v1, v2) ⇒ Object
Syntax sugar for Fn::Equals.
31 32 33 34 35 |
# File 'lib/cloud_shaped/function_methods.rb', line 31 def fn_equals(v1, v2) { "Fn::Equals" => [v1, v2] } end |
#fn_if(condition, when_true, when_false) ⇒ Object
Syntax sugar for Fn::If.
39 40 41 42 43 |
# File 'lib/cloud_shaped/function_methods.rb', line 39 def fn_if(condition, when_true, when_false) { "Fn::If" => [condition, when_true, when_false] } end |
#fn_join(separator, lines) ⇒ Object
Syntax sugar for Fn::Join.
13 14 15 16 17 18 19 |
# File 'lib/cloud_shaped/function_methods.rb', line 13 def fn_join(separator, lines) { "Fn::Join" => [ separator, lines ] } end |
#fn_not(cond) ⇒ Object
Syntax sugar for Fn::Not.
47 48 49 50 51 |
# File 'lib/cloud_shaped/function_methods.rb', line 47 def fn_not(cond) { "Fn::Not" => [cond] } end |
#fn_or(*conditions) ⇒ Object
Syntax sugar for Fn::Or.
55 56 57 58 59 |
# File 'lib/cloud_shaped/function_methods.rb', line 55 def fn_or(*conditions) { "Fn::Or" => conditions } end |