Class: Bozo::Publishers::Rubygems

Inherits:
Object
  • Object
show all
Defined in:
lib/bozo/publishers/rubygems.rb

Overview

Publisher that publishes gem files to rubygems.org

Instance Method Summary collapse

Constructor Details

#initializeRubygems

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

#executeObject



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