-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A failed attempt to upgrade ruby in the vagrant image using chef. Eve…
…rything works except setting the default ruby. The command is successful, but doesn't change the default ruby. Stumped.
- Loading branch information
Showing
1 changed file
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,42 @@ | ||
# Install the configuration files we need | ||
# Upgrade ruby. I don't know chef, so this is probably more complicated than it needs to be: | ||
# execute "upgrade-rvm" do | ||
# command "rvm get stable && rvm reload" | ||
# action :nothing | ||
# end | ||
|
||
# Nothing here anymore. I'll leave this recipe in case we need to add stuff for vagrant again. | ||
# execute "upgrade-ruby" do | ||
# command "yes | rvm install 2.0.0-p247-turbo" | ||
# action :nothing | ||
# end | ||
|
||
|
||
|
||
# TODO: set-default-ruby SUCCEEDS BY DOES NOTHING. HOW TO GET THIS TO WORK?? | ||
|
||
# execute "set-default-ruby" do | ||
# command "rvm --default use ruby-2.0.0-p247-turbo" | ||
# user "vagrant" | ||
# action :nothing | ||
# end | ||
|
||
|
||
|
||
|
||
# execute "install-gems" do | ||
# command "gem install bundler && bundle install" | ||
# user "vagrant" | ||
# cwd "/vagrant" | ||
# action :nothing | ||
# end | ||
|
||
# ruby_block "ruby-upgrade-message" do | ||
# block do | ||
# Chef::Log.info "Upgrading ruby. This will take a while." | ||
# end | ||
# only_if { `ruby -v`.include?('2.0.0p0') } | ||
# notifies :run, "execute[upgrade-rvm]", :immediately | ||
# notifies :run, "execute[upgrade-ruby]", :immediately | ||
# notifies :run, "execute[set-default-ruby]", :immediately | ||
# notifies :run, "execute[install-gems]", :immediately | ||
# action :create | ||
# end |