Module: ForemanRemoteExecution

Defined in:
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

Defined Under Namespace

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

Constant Summary collapse

DYNFLOW_QUEUE =
:remote_execution
VERSION =
'13.2.2'.freeze

Class Method Summary collapse

Class Method Details

.job_invocation_report_templates_selectObject



367
368
369
# File 'lib/foreman_remote_execution/engine.rb', line 367

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



371
372
373
374
375
376
377
378
379
380
381
382
383
# File 'lib/foreman_remote_execution/engine.rb', line 371

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