Sha256: 60d827c41283a929066afe73ddd2d89af82b7c5e4fd26fd0ab3aa3be487a5299
Contents?: true
Size: 636 Bytes
Versions: 8
Compression:
Stored size: 636 Bytes
Contents
# rbenv vars tasks namespace :rbenv do namespace :vars do desc "Show current rbenv vars" task :show, :roles => :app do run "sh -c 'cd #{shared_path} && cat .rbenv-vars'" do |channel, stream, data| puts data end end desc "Add rbenv vars" task :add, :roles => :app do run "echo '#{key}=#{value}' >> #{shared_path}/.rbenv-vars" end after "deploy:finalize_update", "rbenv:vars:symlink" desc "Symlink rbenv-vars file into the current release" task :symlink, :roles => :app do run "ln -nfs '#{shared_path}/.rbenv-vars' '#{release_path}/.rbenv-vars'" end end end
Version data entries
8 entries across 8 versions & 1 rubygems