Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing task for installing brightbox ruby 2.2 #252

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions lib/moonshine/capistrano_integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,26 @@ def self.load_into(capistrano_config)
sudo 'apt-get remove -q -y ^.*ruby.* || true'
#TODO apt-pinning to ensure ruby is never installed via apt
end

task :brightbox22 do
remove_ruby_from_apt
run [
'sudo rm -f /usr/bin/ruby',
'sudo rm -f /usr/bin/gem',
'sudo rm -f /usr/bin/rake',
'sudo rm -f /usr/bin/rdoc',
'sudo rm -f /usr/bin/irb',
'sudo rm -f /usr/bin/erb',
'sudo rm -f /usr/bin/ri',
'sudo rm -f /usr/bin/testrb',
'sudo apt-get install python-software-properties software-properties-common -y',
'sudo apt-add-repository ppa:brightbox/ruby-ng -y',
'sudo apt-get update',
'sudo apt-get install ruby2.2 ruby2.2-dev -y'
].join(' && ')
set :rubygems_version, fetch(:rubygems_version, '2.4.8')
set :bundler_version, fetch(:bundler_version, '1.9.10')
end

task :brightbox21 do
remove_ruby_from_apt
Expand Down