class TaskJuggler::ProjectServerIface

This is the DRb call interface of the ProjectServer class. All functions must be authenticated with the proper key.

Public Class Methods

new(server) click to toggle source
# File lib/taskjuggler/daemon/ProjectServer.rb, line 370
def initialize(server)
  @server = server
end

Public Instance Methods

getProjectName(authKey) click to toggle source
# File lib/taskjuggler/daemon/ProjectServer.rb, line 380
def getProjectName(authKey)
  return false unless @server.checkKey(authKey, 'getReportServer')

  trap { @server.getProjectName }
end
getReportList(authKey) click to toggle source
# File lib/taskjuggler/daemon/ProjectServer.rb, line 386
def getReportList(authKey)
  return false unless @server.checkKey(authKey, 'getReportServer')

  trap { @server.getReportList }
end
getReportServer(authKey) click to toggle source
# File lib/taskjuggler/daemon/ProjectServer.rb, line 392
def getReportServer(authKey)
  return false unless @server.checkKey(authKey, 'getReportServer')

  trap { @server.getReportServer }
end
loadProject(authKey, args) click to toggle source
# File lib/taskjuggler/daemon/ProjectServer.rb, line 374
def loadProject(authKey, args)
  return false unless @server.checkKey(authKey, 'loadProject')

  trap { @server.loadProject(args) }
end
ping(authKey) click to toggle source
# File lib/taskjuggler/daemon/ProjectServer.rb, line 398
def ping(authKey)
  return false unless @server.checkKey(authKey, 'ping')

  trap { @server.ping }
  true
end