Class: TaskJuggler::StatusSheetReceiver
- Inherits:
-
SheetReceiver
- Object
- SheetHandlerBase
- SheetReceiver
- TaskJuggler::StatusSheetReceiver
- Defined in:
- lib/taskjuggler/StatusSheetReceiver.rb
Overview
This class specializes SheetReceiver to process status sheets.
Instance Attribute Summary
Attributes inherited from SheetHandlerBase
Instance Method Summary collapse
-
#initialize(appName) ⇒ StatusSheetReceiver
constructor
A new instance of StatusSheetReceiver.
Methods inherited from SheetReceiver
Methods included from StdIoWrapper
Methods inherited from SheetHandlerBase
#addToScm, #cutOut, #error, #htmlMailBody, #info, #log, #sendEmail, #sendRichTextEmail, #setWorkingDir, #warning
Constructor Details
#initialize(appName) ⇒ StatusSheetReceiver
Returns a new instance of StatusSheetReceiver.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# 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-z][a-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-z][a-z0-9_]*\s([0-9:\-+]*\s-\s[0-9:\-+]*)/ @emailSubject = "Status report from %s for %s" end |