Class TaskJuggler::StatusSheetReceiver
In: lib/taskjuggler/StatusSheetReceiver.rb
Parent: SheetReceiver

This class specializes SheetReceiver to process status sheets.

Methods

new  

Public Class methods

[Source]

# 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

[Validate]