Class: Mu::Command::Cmd_homepage

Inherits:
Mu::Command show all
Defined in:
lib/mu/command/cmd_homepage.rb

Constant Summary

Constants inherited from Mu::Command

Api

Constants included from Helper

Helper::ESCAPES

Instance Attribute Summary collapse

Attributes inherited from Mu::Command

#options, #opts

Instance Method Summary collapse

Methods inherited from Mu::Command

#initialize

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

#apiObject

Returns the value of attribute api.



7
8
9
# File 'lib/mu/command/cmd_homepage.rb', line 7

def api
  @api
end

#hostObject

Returns the value of attribute host.



7
8
9
# File 'lib/mu/command/cmd_homepage.rb', line 7

def host
  @host
end

#passwordObject

Returns the value of attribute password.



7
8
9
# File 'lib/mu/command/cmd_homepage.rb', line 7

def password
  @password
end

#usernameObject

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