lib/deepsecurity/transport_objects/host_group.rb
# Retrieves a HostGroup by name.
# @param hostname [String] hostname
# @return [HostGroup]

Retrieves a HostGroup by name.
Retrieves a HostGroup by name .
def host_group_by_name(hostname)
      return nil if hostname.blank?
      cache.fetch(HostGroup.cache_key(:name, name)) do
        interface.hostGroupRetrieveByName(hostname)
      end
    end
def host_group_by_name ( hostname ) return nil if hostname . blank? cache . fetch ( HostGroup . cache_key ( :name , name ) ) do interface . hostGroupRetrieveByName ( hostname ) end end
Retrieves a HostGroup by name.
Retrieves a HostGroup by name .
None
HostGroup
hostname
None