forked from aws/opsworks-cookbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix attribute accessing/definition, use strings instead of symbols
- Loading branch information
Christian Requena
committed
Jul 8, 2013
1 parent
c2b7288
commit 6dced48
Showing
1 changed file
with
4 additions
and
4 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,10 +1,10 @@ | ||
default[:opsworks_rubygems][:version] = '2.0.3' | ||
default['opsworks_rubygems']['version'] = '2.0.3' | ||
|
||
# set LC_ALL and LANG to workaround US-ASCII errors with rubygems 2.0.3 on opsworks | ||
case node[:opsworks][:ruby_version] | ||
case node['opsworks']['ruby_version'] | ||
when /1.8/ | ||
default[:opsworks_rubygems][:setup_command] = "/usr/bin/env LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 /usr/local/bin/ruby setup.rb --no-rdoc --no-ri" | ||
default['opsworks_rubygems']['setup_command'] = "/usr/bin/env LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 /usr/local/bin/ruby setup.rb --no-rdoc --no-ri" | ||
else | ||
# set --disable-gems for Ruby 1.9 and later | ||
default[:opsworks_rubygems][:setup_command] = "/usr/bin/env LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 /usr/local/bin/ruby --disable-gems setup.rb --no-rdoc --no-ri" | ||
default['opsworks_rubygems']['setup_command'] = "/usr/bin/env LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 /usr/local/bin/ruby --disable-gems setup.rb --no-rdoc --no-ri" | ||
end |