Sha256: 5dfa978004fd1ee79360a1f7b1e28f53db79a15a286e18239af6c341ef1fe6a9

Contents?: true

Size: 634 Bytes

Versions: 59

Compression:

Stored size: 634 Bytes

Contents

# frozen_string_literal: true

module RubyTerraform
  module Options
    module Types
      class Standard < ImmutableStruct.new(
        :name,
        :value,
        :separator,
        :placement
      )
        def initialize(name, value, **opts)
          super(
            name: name, value: value,
            separator: opts[:separator],
            placement: opts[:placement]
          )
        end

        def apply(builder)
          builder.with_option(
            name,
            value.render,
            separator: separator,
            placement: placement
          )
        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/standard.rb
ruby-terraform-1.8.0.pre.5 lib/ruby_terraform/options/types/standard.rb
ruby-terraform-1.8.0.pre.4 lib/ruby_terraform/options/types/standard.rb
ruby-terraform-1.8.0.pre.3 lib/ruby_terraform/options/types/standard.rb
ruby-terraform-1.8.0.pre.2 lib/ruby_terraform/options/types/standard.rb
ruby-terraform-1.8.0.pre.1 lib/ruby_terraform/options/types/standard.rb
ruby-terraform-1.7.0 lib/ruby_terraform/options/types/standard.rb
ruby-terraform-1.7.0.pre.19 lib/ruby_terraform/options/types/standard.rb
ruby-terraform-1.7.0.pre.18 lib/ruby_terraform/options/types/standard.rb
ruby-terraform-1.7.0.pre.17 lib/ruby_terraform/options/types/standard.rb
ruby-terraform-1.7.0.pre.16 lib/ruby_terraform/options/types/standard.rb
ruby-terraform-1.7.0.pre.15 lib/ruby_terraform/options/types/standard.rb
ruby-terraform-1.7.0.pre.14 lib/ruby_terraform/options/types/standard.rb
ruby-terraform-1.7.0.pre.13 lib/ruby_terraform/options/types/standard.rb
ruby-terraform-1.7.0.pre.12 lib/ruby_terraform/options/types/standard.rb
ruby-terraform-1.7.0.pre.11 lib/ruby_terraform/options/types/standard.rb
ruby-terraform-1.7.0.pre.10 lib/ruby_terraform/options/types/standard.rb
ruby-terraform-1.7.0.pre.9 lib/ruby_terraform/options/types/standard.rb
ruby-terraform-1.7.0.pre.8 lib/ruby_terraform/options/types/standard.rb
ruby-terraform-1.7.0.pre.7 lib/ruby_terraform/options/types/standard.rb