Class: Deadweight::RakeTask

Inherits:
Object
  • Object
show all
Includes:
Rake::DSL
Defined in:
lib/deadweight/rake_task.rb

Instance Method Summary (collapse)

Constructor Details

- (RakeTask) initialize(output = STDOUT, &block)

Returns a new instance of RakeTask



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

def initialize output=STDOUT, &block
  desc "run deadweight"
  task :deadweight do
    dw = Deadweight.new(&block)
    dw.dump(output)
  end
end