# File lib/commands/push.rb, line 7 def arguments "GEM built gem to push up" end
# File lib/commands/push.rb, line 3 def description 'Push a gem up to Gemcutter' end
# File lib/commands/push.rb, line 20 def execute setup send_gem end
# File lib/commands/push.rb, line 25 def send_gem say "Pushing gem to Gemcutter..." 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
Generated with the Darkfish Rdoc Generator 2.