Skip to content

Instantly share code, notes, and snippets.

@coderforhire
Created September 5, 2012 15:33
Show Gist options
  • Save coderforhire/3638543 to your computer and use it in GitHub Desktop.
Save coderforhire/3638543 to your computer and use it in GitHub Desktop.
module ProvisionServer
@queue = :provision_server
def self.perform(server_id)
@server = Server.find(server_id)
name = SecureRandom.urlsafe_base64(10)
rackspace = CloudServers::Connection.new(:username => RACKSPACE_USER_NAME, :api_key => RACKSPACE_API_KEY)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment