Module: ForemanAnsible::HostsHelperExtensions
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/helpers/foreman_ansible/hosts_helper_extensions.rb
Overview
Chained methods to extend the hosts menu with Ansible actions
Defined Under Namespace
Modules: Overrides
Instance Method Summary collapse
Instance Method Details
#ansible_roles_present?(host) ⇒ Boolean
25 26 27 28 |
# File 'app/helpers/foreman_ansible/hosts_helper_extensions.rb', line 25 def ansible_roles_present?(host) host.ansible_roles.present? || host.inherited_ansible_roles.present? end |