Class: Geppeto::Commands::Hq
- Inherits:
-
Object
- Object
- Geppeto::Commands::Hq
- Defined in:
- lib/commands/hq.rb
Instance Method Summary collapse
- #gettoken ⇒ Object
-
#initialize(scout) ⇒ Hq
constructor
A new instance of Hq.
- #print(str) ⇒ Object
- #report(report_name, value) ⇒ Object
- #setaddress(host, port = nil) ⇒ Object
- #settoken(token) ⇒ Object
Constructor Details
#initialize(scout) ⇒ Hq
Returns a new instance of Hq.
4 5 6 |
# File 'lib/commands/hq.rb', line 4 def initialize(scout) @scout = scout end |
Instance Method Details
#gettoken ⇒ Object
20 21 22 |
# File 'lib/commands/hq.rb', line 20 def gettoken @scout.request("hq.gettoken") end |
#print(str) ⇒ Object
12 13 14 |
# File 'lib/commands/hq.rb', line 12 def print(str) @scout.request("hq.print", str) end |
#report(report_name, value) ⇒ Object
24 25 26 |
# File 'lib/commands/hq.rb', line 24 def report(report_name, value) @scout.request("hq.report", report_name, value) end |
#setaddress(host, port = nil) ⇒ Object
8 9 10 |
# File 'lib/commands/hq.rb', line 8 def setaddress(host, port = nil) @scout.request("hq.setaddress", host, port) end |
#settoken(token) ⇒ Object
16 17 18 |
# File 'lib/commands/hq.rb', line 16 def settoken(token) @scout.request("hq.settoken", token) end |