Create a gist now

Instantly share code, notes, and snippets.

### 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