Sha256: e0d34b67a913e9f84b3930ad021b2424affcb0f8e91d7d59fba064be872a60ed

Contents?: true

Size: 396 Bytes

Versions: 21

Compression:

Stored size: 396 Bytes

Contents

# frozen_string_literal: true

module RubyTerraform
  module Options
    module Values
      class KeyValue < ImmutableStruct.new(:key, :value)
        def initialize(key, value)
          super(key: key, value: value)
        end

        def resolve
          { key => value.resolve }
        end

        def render
          "'#{key}=#{value.render}'"
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
ruby-terraform-1.4.0.pre.3 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-1.4.0.pre.2 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-1.4.0.pre.1 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-1.3.1 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-1.3.0 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-1.3.0.pre.3 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-1.3.0.pre.2 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-1.3.0.pre.1 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-1.2.0 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-1.2.0.pre.3 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-1.2.0.pre.2 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-1.2.0.pre.1 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-1.1.0 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-1.1.0.pre.2 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-1.1.0.pre.1 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-1.0.0 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-1.0.0.pre.1 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-0.65.0.pre.15 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-0.65.0.pre.14 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-0.65.0.pre.13 lib/ruby_terraform/options/values/key_value.rb