Class: Cejo::Ops::Sysinfo

Inherits:
Object
  • Object
show all
Defined in:
lib/cejo/ops/sysinfo.rb

Overview

Display System Hardware Information.

Constant Summary collapse

DEPS =
%w[pulseaudio amixer ping sensors ryzen vega].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(services, command) ⇒ Sysinfo

Returns a new instance of Sysinfo.



11
12
13
14
# File 'lib/cejo/ops/sysinfo.rb', line 11

def initialize(services, command)
  @services = services
  @command = command
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



7
8
9
# File 'lib/cejo/ops/sysinfo.rb', line 7

def command
  @command
end

#servicesObject (readonly)

Returns the value of attribute services.



7
8
9
# File 'lib/cejo/ops/sysinfo.rb', line 7

def services
  @services
end

Instance Method Details

#runObject



20
21
22
# File 'lib/cejo/ops/sysinfo.rb', line 20

def run
  run_args
end

#run_argsObject



16
17
18
# File 'lib/cejo/ops/sysinfo.rb', line 16

def run_args
  DEPS
end