Class: Commands::TerminateActionCommand

Inherits:
Command show all
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



1055
1056
1057
1058
1059
# File 'lib/commands.rb', line 1055

def enact(client)
  job_flow = get_field(:jobflow)
  client.terminate_jobflows(job_flow)
  logger.puts "Terminated job flow " +  job_flow.join(" ")
end