class HammerCLIForemanRemoteExecution::JobInvocation::CreateCommand
Public Instance Methods
immediate?()
click to toggle source
# File lib/hammer_cli_foreman_remote_execution/job_invocation.rb, line 155 def immediate? !(option_start_at || option_cron_line) end
option_async?()
click to toggle source
# File lib/hammer_cli_foreman_remote_execution/job_invocation.rb, line 147 def option_async? if immediate? original_option_async? else true end end
Also aliased as: original_option_async?
request_params()
click to toggle source
Calls superclass method
# File lib/hammer_cli_foreman_remote_execution/job_invocation.rb, line 128 def request_params params = super cli_inputs = option_inputs || {} file_inputs = option_input_files || {} params['job_invocation']['inputs'] = cli_inputs.merge(file_inputs) params['job_invocation']['targeting_type'] = option_dynamic? ? 'dynamic_query' : 'static_query' params end
task_progress(task_or_id)
click to toggle source
Calls superclass method
# File lib/hammer_cli_foreman_remote_execution/job_invocation.rb, line 139 def task_progress(task_or_id) print_message(success_message, task_or_id) task = task_or_id['dynflow_task']['id'] super(task) end