Class: Cejo::Ops::Sysinfo
- Inherits:
-
Object
- Object
- Cejo::Ops::Sysinfo
- 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
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#services ⇒ Object
readonly
Returns the value of attribute services.
Instance Method Summary collapse
-
#initialize(services, command) ⇒ Sysinfo
constructor
A new instance of Sysinfo.
- #run ⇒ Object
- #run_args ⇒ Object
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
#command ⇒ Object (readonly)
Returns the value of attribute command.
7 8 9 |
# File 'lib/cejo/ops/sysinfo.rb', line 7 def command @command end |
#services ⇒ Object (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
#run ⇒ Object
20 21 22 |
# File 'lib/cejo/ops/sysinfo.rb', line 20 def run run_args end |
#run_args ⇒ Object
16 17 18 |
# File 'lib/cejo/ops/sysinfo.rb', line 16 def run_args DEPS end |