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.
372
373
374
|
# File 'lib/taskjuggler/daemon/ProjectServer.rb', line 372
def initialize(server)
@server = server
end
|
Instance Method Details
#getProjectName(authKey) ⇒ Object
382
383
384
385
386
|
# File 'lib/taskjuggler/daemon/ProjectServer.rb', line 382
def getProjectName(authKey)
return false unless @server.checkKey(authKey, 'getReportServer')
trap { @server.getProjectName }
end
|
#getReportList(authKey) ⇒ Object
388
389
390
391
392
|
# File 'lib/taskjuggler/daemon/ProjectServer.rb', line 388
def getReportList(authKey)
return false unless @server.checkKey(authKey, 'getReportServer')
trap { @server.getReportList }
end
|
#getReportServer(authKey) ⇒ Object
394
395
396
397
398
|
# File 'lib/taskjuggler/daemon/ProjectServer.rb', line 394
def getReportServer(authKey)
return false unless @server.checkKey(authKey, 'getReportServer')
trap { @server.getReportServer }
end
|
#loadProject(authKey, args) ⇒ Object
376
377
378
379
380
|
# File 'lib/taskjuggler/daemon/ProjectServer.rb', line 376
def loadProject(authKey, args)
return false unless @server.checkKey(authKey, 'loadProject')
trap { @server.loadProject(args) }
end
|
#ping(authKey) ⇒ Object
400
401
402
403
404
405
|
# File 'lib/taskjuggler/daemon/ProjectServer.rb', line 400
def ping(authKey)
return false unless @server.checkKey(authKey, 'ping')
trap { @server.ping }
true
end
|