Skip to content

Commit

Permalink
fix attribute accessing/definition, use strings instead of symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Requena committed Jul 8, 2013
1 parent c2b7288 commit 6dced48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions opsworks_rubygems/attributes/rubygems.rb
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

0 comments on commit 6dced48

Please sign in to comment.