Class: Rake::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/hoe/rake.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pluginObject

Used to name the source of a given task



4
5
6
# File 'lib/hoe/rake.rb', line 4

def plugin
  @plugin
end

Instance Method Details

#clearObject

:nodoc:



17
18
19
20
21
22
# File 'lib/hoe/rake.rb', line 17

def clear # :nodoc:
  clear_prerequisites
  clear_actions
  clear_comments
  self
end

#clear_commentsObject

:nodoc:



24
25
26
27
28
# File 'lib/hoe/rake.rb', line 24

def clear_comments # :nodoc:
  @full_comment = nil
  @comment = nil
  self
end

#commentObject

Overrides the default #comment to provide the plugin name.



11
12
13
# File 'lib/hoe/rake.rb', line 11

def comment
  "%-#{$plugin_max}s # %s" % [plugin, old_comment] if old_comment
end

#old_clearObject



16
# File 'lib/hoe/rake.rb', line 16

alias :old_clear :clear

#old_commentObject

:stopdoc:



6
# File 'lib/hoe/rake.rb', line 6

alias :old_comment :comment