Created
January 27, 2011 23:55
-
-
Save localshred/799554 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
require 'rubygems' | |
require 'bundler/setup' | |
require 'my_private_gem/deploy' | |
# Configure loudmouth | |
MyPrivateGem::Deploy.configure(:application1) |
This file contains hidden or 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
$: << 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