Class: Yaggy::Release
- Inherits:
-
Object
- Object
- Yaggy::Release
- Defined in:
- lib/yaggy/release.rb
Class Method Summary collapse
Class Method Details
.release(what) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/yaggy/release.rb', line 4 def release(what) gem = Yaggy.current_gem gem.send("rev_#{what}!") puts("Releasing #{gem.name} version #{gem.version}") gem.write! if gem.use_git? gem.commit! end if gem.push_gem? gem.push! end end |