Class: ASRake::ExeTask
- Inherits:
-
Rake::FileTask
- Object
- Rake::FileTask
- ASRake::ExeTask
- Defined in:
- lib/asrake/exe_task.rb
Instance Attribute Summary collapse
-
#post_invoke ⇒ Object
Returns the value of attribute post_invoke.
-
#pre_invoke ⇒ Object
Returns the value of attribute pre_invoke.
Instance Method Summary collapse
-
#initialize(task_name, app) ⇒ ExeTask
constructor
A new instance of ExeTask.
- #invoke_with_call_chain(task_args, invocation_chain) ⇒ Object
Constructor Details
#initialize(task_name, app) ⇒ ExeTask
Returns a new instance of ExeTask.
10 11 12 |
# File 'lib/asrake/exe_task.rb', line 10 def initialize(task_name, app) super end |
Instance Attribute Details
#post_invoke ⇒ Object
Returns the value of attribute post_invoke.
8 9 10 |
# File 'lib/asrake/exe_task.rb', line 8 def post_invoke @post_invoke end |
#pre_invoke ⇒ Object
Returns the value of attribute pre_invoke.
7 8 9 |
# File 'lib/asrake/exe_task.rb', line 7 def pre_invoke @pre_invoke end |
Instance Method Details
#invoke_with_call_chain(task_args, invocation_chain) ⇒ Object
14 15 16 17 18 |
# File 'lib/asrake/exe_task.rb', line 14 def invoke_with_call_chain(task_args, invocation_chain) pre_invoke.call() if pre_invoke != nil super post_invoke.call() if post_invoke != nil end |