Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $: << 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
Add Comment
Please, Sign In to add comment