Class: TaskJuggler::Tj3TsReceiver
- Inherits:
-
Tj3SheetAppBase
- Object
- Tj3AppBase
- Tj3SheetAppBase
- TaskJuggler::Tj3TsReceiver
- Defined in:
- lib/taskjuggler/apps/Tj3TsReceiver.rb
Instance Method Summary collapse
- #appMain(argv) ⇒ Object
-
#initialize ⇒ Tj3TsReceiver
constructor
A new instance of Tj3TsReceiver.
- #processArguments(argv) ⇒ Object
Methods inherited from Tj3SheetAppBase
Methods inherited from Tj3AppBase
Methods included from MessageHandler
#critical, #debug, #error, #fatal, #info, #warning
Constructor Details
#initialize ⇒ Tj3TsReceiver
Returns a new instance of Tj3TsReceiver.
28 29 30 |
# File 'lib/taskjuggler/apps/Tj3TsReceiver.rb', line 28 def initialize super end |
Instance Method Details
#appMain(argv) ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/taskjuggler/apps/Tj3TsReceiver.rb', line 46 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 |
#processArguments(argv) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/taskjuggler/apps/Tj3TsReceiver.rb', line 32 def processArguments(argv) super do @opts..prepend(<<'EOT' This program can be used to receive filled-out time sheets via email. It reads the emails from STDIN and extracts the time sheet from the attached files. The time sheet is checked for correctness. Good time sheets are filed away. The sender will be informed by email that the time sheets was accepted or rejected. EOT ) end end |