Sha256: e494ea3848ab5bb1bb94fe6854fd50129ad48061e5b2d1b4869a4804ad5ab1d0

Contents?: true

Size: 299 Bytes

Versions: 4

Compression:

Stored size: 299 Bytes

Contents

# frozen_string_literal: true

require_relative 'base'
require_relative '../values/boolean'

module RubyTerraform
  module Options
    module Types
      class Flag < Base
        def apply(builder)
          value.resolve ? builder.with_flag(name) : builder
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-terraform-0.65.0.pre.15 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-0.65.0.pre.14 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-0.65.0.pre.13 lib/ruby_terraform/options/types/flag.rb
ruby-terraform-0.65.0.pre.12 lib/ruby_terraform/options/types/flag.rb