class TaskJuggler::StatusSheetReceiver
This class specializes SheetReceiver
to process status sheets.
Public Class Methods
new(appName)
click to toggle source
Calls superclass method
TaskJuggler::SheetReceiver::new
# File lib/taskjuggler/StatusSheetReceiver.rb, line 21 def initialize(appName) super(appName, 'status') @tj3clientOption = 'check-ss' # File name and directory settings. @sheetDir = 'StatusSheets' @templateDir = 'StatusSheetTemplates' @failedMailsDir = "#{@sheetDir}/FailedMails" @failedSheetsDir = "#{@sheetDir}/FailedSheets" # This file contains the time intervals that the StatusSheetReceiver will # accept as a valid interval. @signatureFile = "#{@templateDir}/acceptable_intervals" # The log file @logFile = 'statussheets.log' # Regular expression to identify status sheets. @sheetHeader = /^[ ]*statussheet\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 = /^[ ]*statussheet\s[a-zA-Z_][a-zA-Z0-9_]*\s([0-9:\-+]*\s-\s[0-9:\-+]*)/ @emailSubject = "Status report from %s for %s" end