public
Created

Part of the Pusher class from RubyGems.org

  • Download Gist
pusher.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
class Pusher
attr_reader :user, :spec, :message, :code, :rubygem, :body, :version, :version_id
 
def initialize(user, body, host_with_port=nil)
@user = user
@body = StringIO.new(body.read)
@indexer = Indexer.new
@host_with_port = host_with_port
end
 
def process
pull_spec && find && authorize && save
end
 
... etc ...

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.