Module: HostgroupsHelper

Includes:
CommonParametersHelper, HostsAndHostgroupsHelper
Defined in:
app/helpers/hostgroups_helper.rb

Instance Method Summary collapse

Methods included from HostsAndHostgroupsHelper

#accessible_domains, #accessible_hostgroups, #arch_oss, #domain_subnets, #hostgroup_name, #ifs_bmc_opts, #interesting_klasses, #model_name, #os_media, #os_ptable, #parent_classes, #puppet_ca, #puppet_master, #puppet_master_fields

Methods included from CommonParametersHelper

#authorized_via_my_scope, #parameter_value_field, #parameters_title

Instance Method Details

#warning_message(group) ⇒ Object


5
6
7
8
9
10
11
12
# File 'app/helpers/hostgroups_helper.rb', line 5

def warning_message group
  msg = [_("Are you sure?")]
  if group.has_children?
    msg << _("This group has nested groups!") + "\n"
    msg << _("Deleting this group will unlink its nested groups and any associated puppet classes and / or parameters")
  end
  msg.join("\n")
end