Skip to content

Instantly share code, notes, and snippets.

@retr0h
Created February 28, 2009 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save retr0h/72143 to your computer and use it in GitHub Desktop.
Save retr0h/72143 to your computer and use it in GitHub Desktop.
### 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