1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
namespace :vlad do
  remote_task :bundle do
    # loads RVM, which initializes environment and paths
    # automatically trust the gemset in the .rvmrc file
    # run bundle install with explicit path and without test dependencies
    run [ "source ~/.rvm/scripts/rvm",
          "rvm rvmrc trust #{release_path}",
          "cd #{release_path}",
          "bundle install $BUNDLE_PATH --without test"
        ].join(" && ")
  end

  task :update do
    Rake::Task['vlad:bundle'].invoke
  end
end