Skip to content

Instantly share code, notes, and snippets.

@patshaughnessy
Created January 29, 2012 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patshaughnessy/1700233 to your computer and use it in GitHub Desktop.
Save patshaughnessy/1700233 to your computer and use it in GitHub Desktop.
Part of the Pusher class from RubyGems.org
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