Class: Mu::Command::Cmd_system
- Inherits:
-
Mu::Command
- Object
- Mu::Command
- Mu::Command::Cmd_system
- Defined in:
- lib/mu/command/cmd_system.rb
Constant Summary
Constants inherited from Mu::Command
Constants included from Helper
Instance Attribute Summary collapse
-
#api ⇒ Object
Returns the value of attribute api.
-
#host ⇒ Object
Returns the value of attribute host.
-
#password ⇒ Object
Returns the value of attribute password.
-
#username ⇒ Object
Returns the value of attribute username.
Attributes inherited from Mu::Command
Instance Method Summary collapse
-
#cmd_help(argv) ⇒ Object
outputs help for this command * argv = command-line arguments.
-
#cmd_restart(argv) ⇒ Object
restarts the Mu system services (this does not reboot the appliance) * argv = command-line arguments.
-
#cmd_status(argv) ⇒ Object
gets the complete System status page * argv = command-line arguments.
-
#cmd_status2(argv) ⇒ Object
gets additional system status information, imncluding hard drive, model and serial data * argv = command-line arguments.
Methods inherited from Mu::Command
Methods included from Helper
#ask, #bin2hex, #error, #escape, #format_float, #get_file_as_string_array, #make_xml, #msg, #shift, #to_boolean
Constructor Details
This class inherits a constructor from Mu::Command
Instance Attribute Details
#api ⇒ Object
Returns the value of attribute api.
8 9 10 |
# File 'lib/mu/command/cmd_system.rb', line 8 def api @api end |
#host ⇒ Object
Returns the value of attribute host.
8 9 10 |
# File 'lib/mu/command/cmd_system.rb', line 8 def host @host end |
#password ⇒ Object
Returns the value of attribute password.
8 9 10 |
# File 'lib/mu/command/cmd_system.rb', line 8 def password @password end |
#username ⇒ Object
Returns the value of attribute username.
8 9 10 |
# File 'lib/mu/command/cmd_system.rb', line 8 def username @username end |
Instance Method Details
#cmd_help(argv) ⇒ Object
outputs help for this command
* argv = command-line arguments
12 13 14 |
# File 'lib/mu/command/cmd_system.rb', line 12 def cmd_help argv help end |
#cmd_restart(argv) ⇒ Object
restarts the Mu system services (this does not reboot the appliance)
* argv = command-line arguments
18 19 20 21 22 23 |
# File 'lib/mu/command/cmd_system.rb', line 18 def cmd_restart argv setup argv response = @api.restart msg response return response end |
#cmd_status(argv) ⇒ Object
gets the complete System status page
* argv = command-line arguments
27 28 29 30 31 32 |
# File 'lib/mu/command/cmd_system.rb', line 27 def cmd_status argv setup argv response = @api.status msg response return response end |
#cmd_status2(argv) ⇒ Object
gets additional system status information, imncluding hard drive, model and serial data
* argv = command-line arguments
36 37 38 39 40 41 |
# File 'lib/mu/command/cmd_system.rb', line 36 def cmd_status2 argv setup argv response = @api.status2 msg response return response end |