Class: RubyTerraform::Commands::Get

Inherits:
Base
  • Object
show all
Defined in:
lib/ruby_terraform/commands/get.rb

Instance Method Summary collapse

Methods inherited from Base

#execute, #initialize

Constructor Details

This class inherits a constructor from RubyTerraform::Commands::Base

Instance Method Details

#configure_command(builder, opts) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/ruby_terraform/commands/get.rb', line 7

def configure_command(builder, opts)
  builder
      .with_subcommand('get') do |sub|
        sub = sub.with_option('-update', true) if opts[:update]
        sub = sub.with_flag('-no-color') if opts[:no_color]
        sub
      end
      .with_argument(opts[:directory])
end