Skip to content

Instantly share code, notes, and snippets.

@localshred
Created January 27, 2011 23:55
Show Gist options
  • Save localshred/799554 to your computer and use it in GitHub Desktop.
Save localshred/799554 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'bundler/setup'
require 'my_private_gem/deploy'
# Configure loudmouth
MyPrivateGem::Deploy.configure(:application1)
$: << File.expand_path('./lib', ENV['rvm_path']) # Add RVM's lib directory to the load path.
require 'rvm/capistrano' # Load RVM's capistrano plugin.
require 'bundler/capistrano'
require 'my_private_gem/deploy/settings'
require 'my_private_gem/deploy/tasks'
require 'my_private_gem/deploy/hooks'
require 'my_private_gem/deploy/helpers'
module MyPrivateGem
class Deploy
class << self
def configure app_name
Capistrano::Configuration.instance(:must_exist).load do
MyPrivateGem::Deploy::Settings.configure(self, app_name)
MyPrivateGem::Deploy::Tasks.configure(self)
MyPrivateGem::Deploy::Hooks.configure(self)
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment