Sha256: 6f6db3bbe6bf774e437799dbbe808a33daeb80d52b2ea595154e2cd675a0a8c3

Contents?: true

Size: 391 Bytes

Versions: 59

Compression:

Stored size: 391 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: name, value: value)
        end

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

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
ruby-terraform-1.8.0.pre.6 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.8.0.pre.5 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.8.0.pre.4 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.8.0.pre.3 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.8.0.pre.2 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.8.0.pre.1 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.7.0 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.7.0.pre.19 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.7.0.pre.18 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.7.0.pre.17 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.7.0.pre.16 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.7.0.pre.15 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.7.0.pre.14 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.7.0.pre.13 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.7.0.pre.12 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.7.0.pre.11 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.7.0.pre.10 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.7.0.pre.9 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.7.0.pre.8 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-1.7.0.pre.7 lib/ruby_terraform/options/types/flag.rb