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


class Deadweight
  class RakeTask
    include Rake::DSL if defined?(Rake::DSL)

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


Include Rake::DSL to silence Rake 0.9 deprecation warnings
Include Rake::DSL to silence Rake 0.9 deprecation warnings
