Method: Inspec::Resources::Service#runlevels

Defined in:
lib/resources/service.rb

#runlevels(*args) ⇒ Object

get all runlevels that are available and their configuration



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

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