Sha256: b86a791f38e317a7c298169c12c4504ad5144cd619e49e5b51646751843c96b5
Contents?: true
Size: 1.48 KB
Versions: 3
Compression:
Stored size: 1.48 KB
Contents
#!/usr/bin/env ruby -w # encoding: UTF-8 # # = tj3ts_receiver.rb -- The TaskJuggler III Project Management Software # # Copyright (c) 2006, 2007, 2008, 2009, 2010 by Chris Schlaeger <cs@kde.org> # # 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. # # This script is used to send out the time sheet templates to the employees. # It should be run from a cron job once a week. require 'Tj3SheetAppBase' require 'TimeSheetReceiver' # Name of the application suite AppConfig.appName = 'tj3ts_receiver' class TaskJuggler class Tj3TsReceiver < Tj3SheetAppBase def initialize super end def processArguments(argv) super do @opts.banner += <<'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 def main super 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 end end exit TaskJuggler::Tj3TsReceiver.new.main()
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
taskjuggler-0.0.8 | lib/tj3ts_receiver.rb |
taskjuggler-0.0.7 | lib/tj3ts_receiver.rb |
taskjuggler-0.0.6 | lib/tj3ts_receiver.rb |