class Mdm::Service

A service, such as an ssh server or web server, running on a {#host}.

Constants

PROTOS

Valid values for {#proto}.

STATES

Valid values for {#state}.

Public Class Methods

proto_set() click to toggle source

Set of searchable values for {#proto}.

@return [Set<String>] {PROTOS} as a `Set`. @see Metasploit::Model::Search::Operation::Set#membership @see Metasploit::Model::Search::Operator::Attribute#attribute_set

# File app/models/mdm/service.rb, line 245
def self.proto_set
  @proto_set ||= Set.new(PROTOS)
end

Public Instance Methods

normalize_host_os() click to toggle source

{Mdm::Host::OperatingSystemNormalization#normalize_os Normalizes the host operating system} whenever {#info} has changed.

@return [void]

# File app/models/mdm/service.rb, line 257
def normalize_host_os
  if info_changed?
    host.normalize_os
  end
end