Module: Pwrake::TaskManager
- 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:
25 26 27 28 29 |
# File 'lib/pwrake/task/task_manager.rb', line 25 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:
16 17 18 19 20 21 22 23 |
# File 'lib/pwrake/task/task_manager.rb', line 16 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
5 6 7 8 9 |
# File 'lib/pwrake/task/task_manager.rb', line 5 def initialize @property_by_block = {} @last_property = TaskProperty.new super end |
#last_description=(description) ⇒ Object
11 12 13 14 |
# File 'lib/pwrake/task/task_manager.rb', line 11 def last_description=(description) @last_property.parse_description(description) super end |