Sha256: 7db2dbf5808fc62f81f9ad55023d83064d580c1889c06167e1b14a26534b3b8e

Contents?: true

Size: 560 Bytes

Versions: 11

Compression:

Stored size: 560 Bytes

Contents

require 'rake'

module Hoe::Gemcutter
  def define_gemcutter_tasks
    desc "Push gem to gemcutter."
    task :release_to_gemcutter => [:clean, :package, :release_sanity] do
      pkg   = "pkg/#{spec.name}-#{spec.version}"
      gems  = Dir["#{pkg}*.gem"]
      gems.each do |g|
        # TODO - once gemcutter supports command invocation, use it.
        # We could still fail here due to --format executable
        sh Gem.ruby, "-S", "gem", "push", g
      end
    end

    task :release_to => :release_to_gemcutter
  end
end unless defined? Hoe::Gemcutter

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hoe-2.9.4 lib/hoe/gemcutter.rb
hoe-2.9.3 lib/hoe/gemcutter.rb
hoe-2.9.2 lib/hoe/gemcutter.rb
hoe-2.9.1 lib/hoe/gemcutter.rb
hoe-2.9.1.b.2 lib/hoe/gemcutter.rb
hoe-2.9.0 lib/hoe/gemcutter.rb
hoe-2.8.0 lib/hoe/gemcutter.rb
hoe-2.7.0 lib/hoe/gemcutter.rb
hoe-2.6.2 lib/hoe/gemcutter.rb
hoe-2.6.1 lib/hoe/gemcutter.rb
hoe-2.6.0 lib/hoe/gemcutter.rb