Module: Hoe::Gemcutter
- Defined in:
- lib/hoe/gemcutter.rb
Constant Summary collapse
- VERSION =
'1.0.0'
Instance Method Summary collapse
Instance Method Details
#define_gemcutter_tasks ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/hoe/gemcutter.rb', line 7 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. sh "gem push #{g}" end end task :release_to => :release_to_gemcutter end |