Class: Autobuild::SourceTreeTask
- Inherits:
-
Rake::Task
- Object
- Rake::Task
- Autobuild::SourceTreeTask
- Defined in:
- lib/autobuild/timestamps.rb
Instance Attribute Summary collapse
-
#exclude ⇒ Object
Returns the value of attribute exclude.
-
#newest_file ⇒ Object
readonly
Returns the value of attribute newest_file.
-
#newest_time ⇒ Object
readonly
Returns the value of attribute newest_time.
Instance Method Summary collapse
-
#initialize(*args, &block) ⇒ SourceTreeTask
constructor
A new instance of SourceTreeTask.
- #timestamp ⇒ Object
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
#exclude ⇒ Object
Returns the value of attribute exclude.
59 60 61 |
# File 'lib/autobuild/timestamps.rb', line 59 def exclude @exclude end |
#newest_file ⇒ Object (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_time ⇒ Object (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
#timestamp ⇒ Object
68 69 70 71 72 73 74 75 |
# File 'lib/autobuild/timestamps.rb', line 68 def return @newest_time if @newest_time @newest_file, @newest_time = Autobuild.(name, %r{(?:^|/)(?:CVS|_darcs|\.svn)$}, *@exclude) @newest_time end |