Class: TaskJuggler::ProjectServerIface
Overview
This is the DRb call interface of the ProjectServer class. All functions must be authenticated with the proper key.
Instance Method Summary
collapse
#connect, #disconnect, #terminate, #trap
#critical, #debug, #error, #fatal, #info, #warning
Constructor Details
Returns a new instance of ProjectServerIface.
373
374
375
|
# File 'lib/taskjuggler/daemon/ProjectServer.rb', line 373
def initialize(server)
@server = server
end
|
Instance Method Details
#getProjectName(authKey) ⇒ Object
383
384
385
386
387
|
# File 'lib/taskjuggler/daemon/ProjectServer.rb', line 383
def getProjectName(authKey)
return false unless @server.checkKey(authKey, 'getReportServer')
trap { @server.getProjectName }
end
|
#getReportList(authKey) ⇒ Object
389
390
391
392
393
|
# File 'lib/taskjuggler/daemon/ProjectServer.rb', line 389
def getReportList(authKey)
return false unless @server.checkKey(authKey, 'getReportServer')
trap { @server.getReportList }
end
|
#getReportServer(authKey) ⇒ Object
395
396
397
398
399
|
# File 'lib/taskjuggler/daemon/ProjectServer.rb', line 395
def getReportServer(authKey)
return false unless @server.checkKey(authKey, 'getReportServer')
trap { @server.getReportServer }
end
|
#loadProject(authKey, args) ⇒ Object
377
378
379
380
381
|
# File 'lib/taskjuggler/daemon/ProjectServer.rb', line 377
def loadProject(authKey, args)
return false unless @server.checkKey(authKey, 'loadProject')
trap { @server.loadProject(args) }
end
|
#ping(authKey) ⇒ Object
401
402
403
404
405
406
|
# File 'lib/taskjuggler/daemon/ProjectServer.rb', line 401
def ping(authKey)
return false unless @server.checkKey(authKey, 'ping')
trap { @server.ping }
true
end
|