Class TaskJuggler::Tj3TsReceiver
In: lib/taskjuggler/apps/Tj3TsReceiver.rb
Parent: Tj3SheetAppBase

Methods

Public Class methods

[Source]

# File lib/taskjuggler/apps/Tj3TsReceiver.rb, line 27
    def initialize
      super
    end

Public Instance methods

[Source]

# File lib/taskjuggler/apps/Tj3TsReceiver.rb, line 44
    def appMain(argv)
      ts = TimeSheetReceiver.new('tj3ts_receiver')
      @rc.configure(ts, 'global')
      @rc.configure(ts, 'timesheets')
      @rc.configure(ts, 'timesheets.receiver')
      ts.workingDir = @workingDir if @workingDir
      ts.dryRun = @dryRun

      ts.processEmail

      0
    end

[Source]

# File lib/taskjuggler/apps/Tj3TsReceiver.rb, line 31
    def processArguments(argv)
      super do
        @opts.banner += "This program can be used to receive filled-out time sheets via email.  It\nreads the emails from STDIN and extracts the time sheet from the attached\nfiles. The time sheet is checked for correctness. Good time sheets are filed\naway. The sender will be informed by email that the time sheets was accepted\nor rejected.\n"
      end
    end

[Validate]