Class: Bozo::Publishers::Rubygems
- Inherits:
-
Object
- Object
- Bozo::Publishers::Rubygems
- Defined in:
- lib/bozo/publishers/rubygems.rb
Overview
Publisher that publishes gem files to rubygems.org
Instance Method Summary collapse
- #execute ⇒ Object
- #host(value) ⇒ Object
-
#initialize ⇒ Rubygems
constructor
A new instance of Rubygems.
Constructor Details
#initialize ⇒ Rubygems
Returns a new instance of Rubygems.
6 7 8 |
# File 'lib/bozo/publishers/rubygems.rb', line 6 def initialize @host = nil end |
Instance Method Details
#execute ⇒ Object
14 15 16 |
# File 'lib/bozo/publishers/rubygems.rb', line 14 def execute Dir['dist/gem/*.gem'].each { |gem| push gem } end |
#host(value) ⇒ Object
10 11 12 |
# File 'lib/bozo/publishers/rubygems.rb', line 10 def host(value) @host = value end |