Sha256: 788c78cc91fb594c5f525276950e75bb84309a8ff6e4660351b5e6dbfee3680f

Contents?: true

Size: 504 Bytes

Versions: 4

Compression:

Stored size: 504 Bytes

Contents

# RBEnv
#------------------------------------------------------------------------------
#
set_default :ruby_version, "1.9.3-p125"

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
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
negroku-0.0.5 lib/negroku/tasks/rbenv.rb
negroku-0.0.4 lib/negroku/tasks/rbenv.rb
negroku-0.0.3 lib/negroku/tasks/rbenv.rb
negroku-0.0.2 lib/negroku/tasks/rbenv.rb