Class Index [+]

Quicksearch

TaskJuggler::Tj3SheetAppBase

Public Class Methods

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

Public Instance Methods

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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.