Module: ForemanRemoteExecution::JobTemplatesExtensions
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
Instance Method Summary collapse
Instance Method Details
#permitted_actions_with_run_button(template) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb', line 9 def (template) original = (template) if template.is_a?(JobTemplate) original.unshift((_('Run'), hash_for_new_job_invocation_path(:template_id => template.id).merge(:authorizer => ))) unless template.snippet end original end |