Sha256: 58e675143fc71dbfb25aaf1fa88a2d6aa87cb03ca4111cd318e0300a8387ef77
Contents?: true
Size: 582 Bytes
Versions: 2
Compression:
Stored size: 582 Bytes
Contents
module Bozo::Publishers # Publisher that publishes gem files to rubygems.org class Rubygems def initialize @host = nil end def host(value) @host = value end def execute Dir['dist/gem/*.gem'].each { |gem| push gem } end private def push(gem) execute_command :rubygems, command_arguments(gem) end def command_arguments(gem) args = ['gem', 'push', gem] unless @host.nil? args << '--host' args << @host end args end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bozo-scripts-0.18.5 | lib/bozo/publishers/rubygems.rb |
bozo-scripts-0.18.4 | lib/bozo/publishers/rubygems.rb |