class Gem::Tasks::Push

def define


Defines the `push` task.
def define
  task :validate
  namespace :push do
    @project.builds.each do |build,packages|
      path = packages[:gem]
      task build => [:validate, path] do
        if @host
          status "Pushing #{File.basename(path)} to #{@host} ..."
        else
          status "Pushing #{File.basename(path)} ..."
        end
        push(path)
      end
    end
  end
  gemspec_tasks :push
  # backwards compatibility for Hoe
  task :publish => :push
end