Module: ForemanRemoteExecution

Defined in:
app/lib/foreman_remote_execution/renderer_methods.rb,
lib/foreman_remote_execution.rb,
lib/foreman_remote_execution/engine.rb,
lib/foreman_remote_execution/version.rb,
app/lib/foreman_remote_execution/provider_input.rb,
app/lib/foreman_remote_execution/renderer/scope/input.rb,
app/models/concerns/foreman_remote_execution/nic_extensions.rb,
app/models/concerns/foreman_remote_execution/host_extensions.rb,
app/models/concerns/foreman_remote_execution/user_extensions.rb,
app/models/concerns/foreman_remote_execution/errors_flattener.rb,
app/models/concerns/foreman_remote_execution/subnet_extensions.rb,
app/models/concerns/foreman_remote_execution/template_overrides.rb,
app/models/concerns/foreman_remote_execution/bookmark_extensions.rb,
app/models/concerns/foreman_remote_execution/taxonomy_extensions.rb,
app/models/concerns/foreman_remote_execution/template_extensions.rb,
app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb,
app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb,
app/models/concerns/foreman_remote_execution/template_input_extensions.rb,
app/models/concerns/foreman_remote_execution/foreman_tasks_task_extensions.rb,
app/models/concerns/foreman_remote_execution/foreman_tasks_cleaner_extensions.rb,
app/models/concerns/foreman_remote_execution/foreman_tasks_triggering_extensions.rb,
app/controllers/foreman_remote_execution/concerns/api/v2/subnets_controller_extensions.rb,
app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb,
app/controllers/foreman_remote_execution/concerns/api/v2/registration_commands_controller_extensions.rb

Overview

macros to fetch information about invoked jobs

Defined Under Namespace

Modules: BookmarkExtensions, Concerns, ErrorsFlattener, ForemanTasksCleanerExtensions, ForemanTasksTaskExtensions, ForemanTasksTriggeringExtensions, HostExtensions, JobInvocationCleaner, JobTemplatesExtensions, NicExtensions, Renderer, RendererMethods, SmartProxyExtensions, SubnetExtensions, TaxonomyExtensions, TemplateExtensions, TemplateInputExtensions, TemplateOverrides, UserExtensions Classes: Engine, ProviderInput

Constant Summary collapse

DYNFLOW_QUEUE =
:remote_execution
VERSION =
'14.1.3'.freeze

Class Method Summary collapse

Class Method Details

.job_invocation_report_templates_selectObject



351
352
353
# File 'lib/foreman_remote_execution/engine.rb', line 351

def self.job_invocation_report_templates_select
  Hash[ReportTemplate.unscoped.joins(:template_inputs).where(template_inputs: TemplateInput.where(name: 'job_id')).map { |template| [template.name, template.name] }]
end

.register_rex_featureObject



355
356
357
358
359
360
361
362
363
364
365
366
367
# File 'lib/foreman_remote_execution/engine.rb', line 355

def self.register_rex_feature
  RemoteExecutionFeature.register(
    :puppet_run_host,
    N_('Run Puppet Once'),
    :description => N_('Perform a single Puppet run'),
    :host_action_button => true
  )
  RemoteExecutionFeature.register(
    :run_script,
    N_('Run Script'),
    :description => N_('Run a script')
  )
end