Method: Inspec::Resources::Service#runlevels

Defined in:
lib/inspec/resources/service.rb

#runlevels(*args) ⇒ Object

get all runlevels that are available and their configuration



203
204
205
206
# File 'lib/inspec/resources/service.rb', line 203

def runlevels(*args)
  return Runlevels.new(self) if info.nil? || info[:runlevels].nil?
  Runlevels.from_hash(self, info[:runlevels], args)
end