Class: Geppeto::Commands::Hq

Inherits:
Object
  • Object
show all
Defined in:
lib/commands/hq.rb

Instance Method Summary collapse

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

#gettokenObject



20
21
22
# File 'lib/commands/hq.rb', line 20

def gettoken
  @scout.request("hq.gettoken")
end


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