Class: Mu::Command::Cmd_homepage
- Inherits:
-
Mu::Command
- Object
- Mu::Command
- Mu::Command::Cmd_homepage
- Defined in:
- lib/mu/command/cmd_homepage.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_all(argv) ⇒ Object
returns all homepage information * argv = command-line arguments.
-
#cmd_help(argv) ⇒ Object
displays command-line help * argv = command-line arguments.
-
#cmd_latest_test(argv) ⇒ Object
returns the latest test * argv = command-line arguments.
-
#cmd_queue_test(argv) ⇒ Object
returns the queued tests * argv = command-line arguments.
-
#cmd_recent(argv) ⇒ Object
returns recent homepage information * argv = command-line arguments.
-
#cmd_status(argv) ⇒ Object
returns homepage status information * 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.
7 8 9 |
# File 'lib/mu/command/cmd_homepage.rb', line 7 def api @api end |
#host ⇒ Object
Returns the value of attribute host.
7 8 9 |
# File 'lib/mu/command/cmd_homepage.rb', line 7 def host @host end |
#password ⇒ Object
Returns the value of attribute password.
7 8 9 |
# File 'lib/mu/command/cmd_homepage.rb', line 7 def password @password end |
#username ⇒ Object
Returns the value of attribute username.
7 8 9 |
# File 'lib/mu/command/cmd_homepage.rb', line 7 def username @username end |
Instance Method Details
#cmd_all(argv) ⇒ Object
returns all homepage information
* argv = command-line arguments
17 18 19 20 21 22 |
# File 'lib/mu/command/cmd_homepage.rb', line 17 def cmd_all argv setup argv response = @api.all msg response return response end |
#cmd_help(argv) ⇒ Object
displays command-line help
* argv = command-line arguments
11 12 13 |
# File 'lib/mu/command/cmd_homepage.rb', line 11 def cmd_help argv help end |
#cmd_latest_test(argv) ⇒ Object
returns the latest test
* argv = command-line arguments
44 45 46 47 48 49 |
# File 'lib/mu/command/cmd_homepage.rb', line 44 def cmd_latest_test argv setup argv response = @api.latest_test msg response return response end |
#cmd_queue_test(argv) ⇒ Object
returns the queued tests
* argv = command-line arguments
53 54 55 56 57 58 |
# File 'lib/mu/command/cmd_homepage.rb', line 53 def cmd_queue_test argv setup argv response = @api.queue_test msg response return response end |
#cmd_recent(argv) ⇒ Object
returns recent homepage information
* argv = command-line arguments
26 27 28 29 30 31 |
# File 'lib/mu/command/cmd_homepage.rb', line 26 def cmd_recent argv setup argv response = @api.recent msg response return response end |
#cmd_status(argv) ⇒ Object
returns homepage status information
* argv = command-line arguments
35 36 37 38 39 40 |
# File 'lib/mu/command/cmd_homepage.rb', line 35 def cmd_status argv setup argv response = @api.status msg response return response end |