Sha256: 6854c0a24664e3a024947f1c45182c7ef2319b674ae497c40df26f7ccdc317f8

Contents?: true

Size: 380 Bytes

Versions: 10

Compression:

Stored size: 380 Bytes

Contents

# frozen_string_literal: true

module RubyTerraform
  module Options
    module Types
      class Flag < ImmutableStruct.new(
        :name,
        :value
      )
        def initialize(name, value, **_opts)
          super(name:, value:)
        end

        def apply(builder)
          value.resolve ? builder.with_flag(name) : builder
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ruby-terraform-1.9.0.pre.2 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.9.0.pre.1 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.8.0 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.8.0.pre.13 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.8.0.pre.12 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.8.0.pre.11 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.8.0.pre.10 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.8.0.pre.9 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.8.0.pre.8 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.8.0.pre.7 lib/ruby_terraform/options/types/flag.rb