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

Methods

Public Class methods

[Source]

# File lib/taskjuggler/apps/Tj3SsReceiver.rb, line 24
    def initialize
      super
    end

Public Instance methods

[Source]

# File lib/taskjuggler/apps/Tj3SsReceiver.rb, line 41
    def appMain(argv)
      ts = TaskJuggler::StatusSheetReceiver.new('tj3ss_receiver')
      @rc.configure(ts, 'global')
      @rc.configure(ts, 'statussheets')
      @rc.configure(ts, 'statussheets.receiver')
      ts.workingDir = @workingDir if @workingDir
      ts.dryRun = @dryRun

      ts.processEmail

      0
    end

[Source]

# File lib/taskjuggler/apps/Tj3SsReceiver.rb, line 28
    def processArguments(argv)
      super do
        @opts.banner += "This program can be used to receive filled-out status sheets via email.\nIt reads the emails from STDIN and extracts the status sheet from the\nattached files. The status sheet is checked for correctness. Good status\nsheets are filed away. The sender be informed by email that the status\nsheets was accepted or rejected.\n"
      end
    end

[Validate]