Class: Autobuild::SourceTreeTask

Inherits:
Rake::Task
  • Object
show all
Defined in:
lib/autobuild/timestamps.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args, &block) ⇒ SourceTreeTask

Returns a new instance of SourceTreeTask.



63
64
65
66
# File 'lib/autobuild/timestamps.rb', line 63

def initialize(*args, &block)
    @exclude = Autobuild.ignored_files.dup
    super
end

Instance Attribute Details

#excludeObject

Returns the value of attribute exclude.



59
60
61
# File 'lib/autobuild/timestamps.rb', line 59

def exclude
  @exclude
end

#newest_fileObject (readonly)

Returns the value of attribute newest_file.



61
62
63
# File 'lib/autobuild/timestamps.rb', line 61

def newest_file
  @newest_file
end

#newest_timeObject (readonly)

Returns the value of attribute newest_time.



61
62
63
# File 'lib/autobuild/timestamps.rb', line 61

def newest_time
  @newest_time
end

Instance Method Details

#timestampObject



68
69
70
71
72
73
74
75
# File 'lib/autobuild/timestamps.rb', line 68

def timestamp
    return @newest_time if @newest_time

    @newest_file, @newest_time =
        Autobuild.tree_timestamp(name,
                                 %r{(?:^|/)(?:CVS|_darcs|\.svn)$}, *@exclude)
    @newest_time
end