Sha256: fec9f152ef860799f38f872456cabb39b43172c0bc1ee5c31264000d939b829c

Contents?: true

Size: 574 Bytes

Versions: 36

Compression:

Stored size: 574 Bytes

Contents

class Ufo::Cfn::Stack::Builder
  class Conditions < Base
    def build
      text =<<~EOL
        CreateElbIsTrue:
          Fn::Equals:
          - Ref: CreateElb
          - true
        ElbTargetGroupIsBlank:
          Fn::Equals:
          - Ref: ElbTargetGroup
          - ''
        CreateTargetGroupIsTrue:
          Fn::And:
          - Condition: CreateElbIsTrue
          - Condition: ElbTargetGroupIsBlank
        EcsDesiredCountIsBlank:
          Fn::Equals:
          - Ref: EcsDesiredCount
          - ''
      EOL
      Ufo::Yaml.load(text)
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
ufo-6.3.13 lib/ufo/cfn/stack/builder/conditions.rb
ufo-6.3.12 lib/ufo/cfn/stack/builder/conditions.rb
ufo-6.3.11 lib/ufo/cfn/stack/builder/conditions.rb
ufo-6.3.10 lib/ufo/cfn/stack/builder/conditions.rb
ufo-6.3.9 lib/ufo/cfn/stack/builder/conditions.rb
ufo-6.3.8 lib/ufo/cfn/stack/builder/conditions.rb
ufo-6.3.7 lib/ufo/cfn/stack/builder/conditions.rb
ufo-6.3.6 lib/ufo/cfn/stack/builder/conditions.rb
ufo-6.3.5 lib/ufo/cfn/stack/builder/conditions.rb
ufo-6.3.4 lib/ufo/cfn/stack/builder/conditions.rb
ufo-6.3.3 lib/ufo/cfn/stack/builder/conditions.rb
ufo-6.3.2 lib/ufo/cfn/stack/builder/conditions.rb
ufo-6.3.1 lib/ufo/cfn/stack/builder/conditions.rb
ufo-6.3.0 lib/ufo/cfn/stack/builder/conditions.rb
ufo-6.2.5 lib/ufo/cfn/stack/builder/conditions.rb
ufo-6.2.4 lib/ufo/cfn/stack/builder/conditions.rb
ufo-6.2.3 lib/ufo/cfn/stack/builder/conditions.rb
ufo-6.2.2 lib/ufo/cfn/stack/builder/conditions.rb
ufo-6.2.1 lib/ufo/cfn/stack/builder/conditions.rb
ufo-6.2.0 lib/ufo/cfn/stack/builder/conditions.rb