Class Index [+]

Quicksearch

TaskJuggler::Tj3SheetAppBase

Public Class Methods

new() click to toggle source
    # File lib/Tj3SheetAppBase.rb, line 20
20:     def initialize
21:       super
22: 
23:       @dryRun = false
24:       @workingDir = nil
25:     end

Public Instance Methods

optsEndDate() click to toggle source
    # File lib/Tj3SheetAppBase.rb, line 42
42:     def optsEndDate
43:       @opts.on('-e', '--enddate <DAY>', String,
44:                format("The end date of the reporting period. Either as " +
45:                       "YYYY-MM-DD or day of week. 0: Sunday, 1: Monday and " +
46:                       "so on. The default value is #{@date}.")) do |arg|
47:         ymdFilter = /([0-9]{4})-([0-9]{2})-([0-9]{2})/
48:         if ymdFilter.match(arg)
49:           @date = Time.mktime(*(ymdFilter.match(arg)[1..3]))
50:         else
51:           @date = TjTime.now.nextDayOfWeek(arg.to_i % 7)
52:         end
53:         @date = @date.strftime('%Y-%m-%d')
54:       end
55:     end
processArguments(argv) click to toggle source
    # File lib/Tj3SheetAppBase.rb, line 27
27:     def processArguments(argv)
28:       super do
29:         @opts.on('-d', '--directory <DIR>', String,
30:                  format('Use the specified directory as working ' +
31:                         'directory')) do |arg|
32:           @workingDir = arg
33:         end
34:         @opts.on('--dryrun',
35:                  format("Don't send out any emails or do SCM commits")) do
36:           @dryRun = true
37:         end
38:         yield
39:       end
40:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.