Class: TerraformEnterprise::CommandLine::Commands::PolicyChecksCommand
- Inherits:
-
TerraformEnterprise::CommandLine::Command
- Object
- Thor
- TerraformEnterprise::CommandLine::Command
- TerraformEnterprise::CommandLine::Commands::PolicyChecksCommand
- Includes:
- Util::Tar
- Defined in:
- lib/terraform_enterprise/command_line/commands/policy_checks.rb
Overview
Configuration Version Commoand
Constant Summary collapse
Constants included from TerraformEnterprise::CommandLine
Instance Method Summary collapse
Methods included from Util::Tar
Instance Method Details
#list ⇒ Object
17 18 19 |
# File 'lib/terraform_enterprise/command_line/commands/policy_checks.rb', line 17 def list render client.policy_checks.list(run_id: [:run_id]) end |
#override(id) ⇒ Object
23 24 25 26 27 |
# File 'lib/terraform_enterprise/command_line/commands/policy_checks.rb', line 23 def override(id) params = { id: id, action: :override } params[:comment] = [:comment] if [:comment] render client.policy_checks.action(params) end |