Module: ForemanAnsible::HostsHelperExtensions::Overrides
- Defined in:
- app/helpers/foreman_ansible/hosts_helper_extensions.rb
Instance Method Summary collapse
Instance Method Details
#host_title_actions(*args) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'app/helpers/foreman_ansible/hosts_helper_extensions.rb', line 7 def host_title_actions(*args) host = args.first if ansible_roles_present?(host) && User.current.can?(:create_job_invocations) = (host) title_actions(()) end super(*args) end |
#multiple_actions ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'app/helpers/foreman_ansible/hosts_helper_extensions.rb', line 17 def multiple_actions actions = super if User.current.can?(:create_job_invocations) && User.current.can?(:play_roles_on_host) actions += [[_('Play Ansible roles'), multiple_play_roles_hosts_path, false]] end actions end |