Class: Commands::SetTerminationProtection
- Defined in:
- lib/commands.rb
Instance Attribute Summary
Attributes inherited from Command
#arg, #commands, #description, #logger, #name
Instance Method Summary collapse
Methods inherited from Command
#get_field, #has_value, #have, #initialize, #option, #require, #require_single_jobflow, #resolve, #validate
Constructor Details
This class inherits a constructor from Commands::Command
Instance Method Details
#enact(client) ⇒ Object
1046 1047 1048 1049 1050 1051 |
# File 'lib/commands.rb', line 1046 def enact(client) job_flow = get_field(:jobflow) termination_protected = @arg == 'true' client.set_termination_protection(job_flow, termination_protected) logger.puts "#{termination_protected ? "Disabled":"Enabled"} job flow termination " + job_flow.join(" ") end |