Module: Terraspace::Compiler::CommandsConcern
- Included in:
- Builder, Perform, Terraform::RemoteState::Fetcher, Terraform::Runner::Backend
- Defined in:
- lib/terraspace/compiler/commands_concern.rb
Instance Method Summary collapse
Instance Method Details
#command_is?(*commands) ⇒ Boolean
3 4 5 6 7 8 |
# File 'lib/terraspace/compiler/commands_concern.rb', line 3 def command_is?(*commands) commands.flatten! commands.map!(&:to_s) commands.include?(Terraspace.argv[0]) || # IE: terraspace up Terraspace.argv[0] == "all" && commands.include?(Terraspace.argv[1]) # IE: terraspace all up end |