Sha256: 68851d0d9ba80f44aa95e3602295f68db5d269a07692e98bc1ad2e97aecdc173

Contents?: true

Size: 580 Bytes

Versions: 1

Compression:

Stored size: 580 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'"
    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

1 entries across 1 versions & 1 rubygems

Version Path
negroku-1.1.0 lib/negroku/tasks/rbenv.rb