Methods

Class Index [+]

Quicksearch

TaskJuggler::StatusSheetSender

The StatusSheetSender class generates status sheet templates for the current week and sends them out to the managers. For this to work, the resources must provide the ‘Email’ custom attribute with their email address. The actual project data is accessed via tj3client on a tj3 server process.

Attributes

date[RW]
hideResource[RW]

Public Class Methods

new(appName) click to toggle source
    # File lib/StatusSheetSender.rb, line 25
25:     def initialize(appName)
26:       super(appName, 'status')
27: 
28:       # This is a LogicalExpression string that controls what resources should
29:       # not be getting a status sheet.
30:       @hideResource = '0'
31:       # The base directory of the status sheet templates.
32:       @templateDir = 'StatusSheetTemplates'
33:       # This file contains the time intervals that the StatusSheetReceiver will
34:       # accept as a valid interval.
35:       @signatureFile = "#{@templateDir}/acceptable_intervals"
36:       # The log file
37:       @logFile = 'statussheets.log'
38: 
39:       @signatureFilter = /^[ ]*statussheet\s[a-z][a-z0-9_]*\s([0-9:\-+]*\s-\s[0-9:\-+]*)/
40:       @introText = Please find enclosed your weekly status report template. Please fill out theform and send it back to the sender of this email. You can either use theattached file or the body of the email. In case you send it in the body of theemail, make sure it only contains the 'statussheet' syntax. It must be plaintext, UTF-8 encoded and the status sheet header from 'statussheet' to the periodend date must be in a single line that starts at the beginning of the line.
41:       @mailSubject = "Your weekly status report template for %s"
42:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.