Sha256: bca0a832df80a63e573c245346798621d75be44aa4a25a1d8a09f0995aeb57ae
Contents?: true
Size: 1.41 KB
Versions: 2
Compression:
Stored size: 1.41 KB
Contents
#!/usr/bin/env ruby -w # encoding: UTF-8 # # = tj3ss_receiver.rb -- The TaskJuggler III Project Management Software # # Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011 # by Chris Schlaeger <chris@linux.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. # require 'Tj3SheetAppBase' require 'StatusSheetReceiver' # Name of the application AppConfig.appName = 'tj3ss_receiver' class TaskJuggler class Tj3SsReceiver < Tj3SheetAppBase def initialize super end def processArguments(argv) super do @opts.banner += <<'EOT' This program can be used to receive filled-out status sheets via email. It reads the emails from STDIN and extracts the status sheet from the attached files. The status sheet is checked for correctness. Good status sheets are filed away. The sender be informed by email that the status sheets was accepted or rejected. EOT end end def main super 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 end end exit TaskJuggler::Tj3SsReceiver.new.main()
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
taskjuggler-0.0.10 | lib/tj3ss_receiver.rb |
taskjuggler-0.0.9 | lib/tj3ss_receiver.rb |