lib/negroku/tasks/rbenv.rake in negroku-2.0.0.pre5 vs lib/negroku/tasks/rbenv.rake in negroku-2.0.0.pre6

- old
+ new

@@ -9,10 +9,13 @@ # Looks for the file in the project root set :rbenv_ruby, File.read('.ruby-version').strip if File.exist?('.ruby-version') # Link .rbenv-vars file set :linked_files, fetch(:linked_files, []) << '.rbenv-vars' + + # Set the path to rbenv + set :rbenv_path, "/home/deploy/.rbenv" end end namespace :rbenv do namespace :vars do @@ -58,7 +61,16 @@ execute :touch, ".rbenv-vars" end end end + before 'rbenv:vars:add', 'env:changed' + before 'rbenv:vars:remove', 'env:changed' + + end +end + +namespace :env do + desc 'Env variables changed' + task :changed do end end