Guest User

Untitled

a guest
Jul 21st, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. $: << File.expand_path('./lib', ENV['rvm_path']) # Add RVM's lib directory to the load path.
  2. require 'rvm/capistrano' # Load RVM's capistrano plugin.
  3. require 'bundler/capistrano'
  4.  
  5. require 'my_private_gem/deploy/settings'
  6. require 'my_private_gem/deploy/tasks'
  7. require 'my_private_gem/deploy/hooks'
  8. require 'my_private_gem/deploy/helpers'
  9.  
  10. module MyPrivateGem
  11. class Deploy
  12. class << self
  13.  
  14. def configure app_name
  15. Capistrano::Configuration.instance(:must_exist).load do
  16. MyPrivateGem::Deploy::Settings.configure(self, app_name)
  17. MyPrivateGem::Deploy::Tasks.configure(self)
  18. MyPrivateGem::Deploy::Hooks.configure(self)
  19. end
  20. end
  21. end
  22. end
  23. end
Add Comment
Please, Sign In to add comment