Module: Hoe::Gemcutter

### Home Classes Methods

### In Files

- lib/hoe/gemcutter.rb

### Methods

- #define_gemcutter_tasks

### Included Modules

- Rake::DSL

### Files

- History.rdoc
- Manifest.txt

### Class/Module Index

Quicksearch

- Hoe
- Hoe::Clean
- Hoe::Compiler
- Hoe::Debug
- Hoe::Deps
- Hoe::Flay
- Hoe::Flog
- Hoe::GemPreludeSucks
- Hoe::Gemcutter
- Hoe::Inline
- Hoe::Newb
- Hoe::Package
- Hoe::Publish
- Hoe::RCov
- Hoe::Racc
- Hoe::Rdoc
- Hoe::Signing
- Hoe::Test
- Rake
- Rake::Task
- Rake::TaskManager
- File
- Object
- String

No matching classes.

# Hoe::Gemcutter

### Public Instance Methods

define_gemcutter_tasks() click to toggle source

Define release_to_gemcutter and attach it to the release task.

    # File lib/hoe/gemcutter.rb, line 9
    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

[Validate]

Generated with the Darkfish Rdoc Generator 2.