Parent

Included Modules

Files

Class/Module Index [+]

Quicksearch

HammerCLIForemanRemoteExecution::JobInvocation::CreateCommand

Public Instance Methods

immediate?() click to toggle source
# File lib/hammer_cli_foreman_remote_execution/job_invocation.rb, line 123
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 115
def option_async?
  if immediate?
    defined?(option_async) ? option_async : false
  else
    true
  end
end
request_params() click to toggle source
# File lib/hammer_cli_foreman_remote_execution/job_invocation.rb, line 98
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
# File lib/hammer_cli_foreman_remote_execution/job_invocation.rb, line 109
def task_progress(task_or_id)
  print_message(success_message, task_or_id)
  task = task_or_id['dynflow_task']['id']
  super(task)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.