Class: Sparrowhawk::RakeTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Sparrowhawk::RakeTask
- Defined in:
- lib/sparrowhawk/rake_task.rb
Instance Method Summary collapse
-
#initialize(task_name = :war, &block) ⇒ RakeTask
constructor
A new instance of RakeTask.
Constructor Details
#initialize(task_name = :war, &block) ⇒ RakeTask
Returns a new instance of RakeTask.
8 9 10 11 12 13 14 |
# File 'lib/sparrowhawk/rake_task.rb', line 8 def initialize task_name=:war, &block @configuration = Configuration.new &block task task_name do @configuration.war.build end end |