Module: Pwrake::TaskManager
- Included in:
- Rake::Application
- Defined in:
- lib/pwrake/task/task_manager.rb
Instance Method Summary collapse
-
#create_rule(*args, &block) ⇒ Object
:nodoc:.
-
#define_task(task_class, *args, &block) ⇒ Object
:nodoc:.
- #initialize ⇒ Object
- #last_description=(description) ⇒ Object
Instance Method Details
#create_rule(*args, &block) ⇒ Object
:nodoc:
27 28 29 30 31 |
# File 'lib/pwrake/task/task_manager.rb', line 27 def create_rule(*args, &block) # :nodoc: @property_by_block[block.object_id] = @last_property @last_property = TaskProperty.new super end |
#define_task(task_class, *args, &block) ⇒ Object
:nodoc:
18 19 20 21 22 23 24 25 |
# File 'lib/pwrake/task/task_manager.rb', line 18 def define_task(task_class, *args, &block) # :nodoc: prop = @property_by_block[block.object_id] if prop.nil? prop = @last_property @last_property = TaskProperty.new end super.pw_set_property(prop) end |
#initialize ⇒ Object
7 8 9 10 11 |
# File 'lib/pwrake/task/task_manager.rb', line 7 def initialize @property_by_block = {} @last_property = TaskProperty.new super end |
#last_description=(description) ⇒ Object
13 14 15 16 |
# File 'lib/pwrake/task/task_manager.rb', line 13 def last_description=(description) @last_property.parse_description(description) super end |