Class: RubyTerraform::Options::Types::Flag

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_terraform/options/types/flag.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, value, **_opts) ⇒ Flag

Returns a new instance of Flag.



10
11
12
# File 'lib/ruby_terraform/options/types/flag.rb', line 10

def initialize(name, value, **_opts)
  super(name: name, value: value)
end

Instance Method Details

#apply(builder) ⇒ Object



14
15
16
# File 'lib/ruby_terraform/options/types/flag.rb', line 14

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