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

Version Path
negroku-1.0.0 lib/negroku/tasks/rbenv.rb
negroku-0.0.12 lib/negroku/tasks/rbenv.rb
negroku-0.0.11 lib/negroku/tasks/rbenv.rb
negroku-0.0.10 lib/negroku/tasks/rbenv.rb
negroku-0.0.9 lib/negroku/tasks/rbenv.rb
negroku-0.0.8 lib/negroku/tasks/rbenv.rb
negroku-0.0.7 lib/negroku/tasks/rbenv.rb
negroku-0.0.6 lib/negroku/tasks/rbenv.rb