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


6
7
8
9
10
11
12
# File 'lib/sparrowhawk/rake_task.rb', line 6

def initialize task_name=:war, &block
  @configuration = Configuration.new &block

  task task_name do
    @configuration.war.build
  end
end