Created
February 28, 2009 22:55
-
-
Save retr0h/72143 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
### lib/tasks/app.rake | |
begin | |
require 'vlad' | |
Vlad.load :scm => :git, :web => :apache | |
rescue LoadError | |
puts $! | |
end | |
### Extending 'vlad:update' with 'gems:geminstaller' | |
namespace :vlad do | |
desc "Install gems via geminstaller." | |
remote_task :update, :roles => :app do | |
Rake::Task['gems:geminstaller'].invoke | |
end | |
end | |
namespace :gems do | |
desc "Run geminstaller." | |
remote_task :geminstaller, :roles => :app do | |
run "geminstaller --sudo -c #{current_path}/config/geminstaller.yml" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment