Class: Sparrowhawk::RakeTask

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/sparrowhawk/rake_task.rb

Instance Method Summary collapse

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