Sha256: 02f1a76857fb9f2b934bfd312cabec73c7ba77912b380523b770a74114c1ef14
Contents?: true
Size: 739 Bytes
Versions: 2
Compression:
Stored size: 739 Bytes
Contents
class Gem::Commands::PushCommand < Gem::AbstractCommand def description 'Push a gem up to Nexus server' end def arguments "GEM built gem to push up" end def usage "#{program_name} GEM" end def initialize super 'push', description add_proxy_option end def execute setup send_gem end def send_gem say "Pushing gem to Nexus..." path = get_one_gem_name response = make_request(:post, "gems") do |request| request.body = Gem.read_binary(path) request.add_field("Content-Length", request.body.size) request.add_field("Content-Type", "application/octet-stream") request.add_field("Authorization", api_key) end say response.body end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jbundler-0.3.2 | lib/commands/nexus.rb~ |
jbundler-0.3.1 | lib/commands/nexus.rb~ |