Class: RubyTerraform::Commands::Show
- Defined in:
- lib/ruby_terraform/commands/show.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from RubyTerraform::Commands::Base
Instance Method Details
#configure_command(builder, opts) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/ruby_terraform/commands/show.rb', line 9 def configure_command(builder, opts) path = opts[:path] || opts[:directory] no_color = opts[:no_color] module_depth = opts[:module_depth] builder .with_subcommand('show') do |sub| sub = sub.with_option('-module-depth', module_depth) if module_depth sub = sub.with_flag('-no-color') if no_color sub end .with_argument(path) end |