Created
January 29, 2012 19:19
-
-
Save patshaughnessy/1700233 to your computer and use it in GitHub Desktop.
Part of the Pusher class from RubyGems.org
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment