class TaskJuggler::TimeSheetReceiver
This class specializes SheetReceiver
to process time sheets.
Public Class Methods
new(appName)
click to toggle source
Calls superclass method
TaskJuggler::SheetReceiver::new
# File lib/taskjuggler/TimeSheetReceiver.rb, line 21 def initialize(appName) super(appName, 'time') @tj3clientOption = 'check-ts' # File name and directory settings. @sheetDir = 'TimeSheets' @templateDir = 'TimeSheetTemplates' @failedMailsDir = "#{@sheetDir}/FailedMails" @failedSheetsDir = "#{@sheetDir}/FailedSheets" @signatureFile = "#{@templateDir}/acceptable_intervals" @logFile = 'timesheets.log' # Regular expression to identify time sheets. @sheetHeader = /^[ ]*timesheet\s([a-zA-Z_][a-zA-Z0-9_]*)\s[0-9\-:+]*\s-\s([0-9]*-[0-9]*-[0-9]*)/ # Regular expression to extract the sheet signature (time period). @signatureFilter = /^[ ]*timesheet\s[a-zA-Z_][a-zA-Z0-9_]*\s([0-9:\-+]*\s-\s[0-9:\-+]*)/ @emailSubject = "Report from %s for %s" end