Kanrisuru

Os

The Kanrisuru::Remote::Os class helps with initializing the os details of a remote host.

Attributes

  • [R] processor, operating_system, release, version

Public Class Methods

new

Creates a new instance of the os class. Gathers various details about the operating system.

os = Kanrisuru::Remote::Os.new(host)
os.kernel
'Linux'

os.release
'ubuntu'

Public Instance Methods

kernel

Returns the kernel of the os.

os.kernel
'Linux'

linux?

Returns true if the operating system has a linux kernel.

os.linux?
true

uname

Fetches various details about the current kernel.

os.uname(kernel_name: true)
'Linux'

os.uname(processor: true)
'x86_64'