Skip to content

Commit 83ac30c

Browse files
committed
Update ruby default.rb (attr) to be able to easier defiend ruby version
1 parent 9bf9052 commit 83ac30c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

cookbooks/ruby/attributes/default.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@
1515
# limitations under the License.
1616
#
1717

18+
default['ruby']['folder'] = '2.0'
1819
default['ruby']['version'] = '2.0.0-p481'

cookbooks/ruby/recipes/default.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#
2424
bash "install ruby v.#{node['ruby']['version']}" do
2525
code <<-EOH
26-
wget http://cache.ruby-lang.org/pub/ruby/2.0/ruby-#{node['ruby']['version']}.tar.gz
26+
wget http://cache.ruby-lang.org/pub/ruby/#{node['ruby']['folder']}/ruby-#{node['ruby']['version']}.tar.gz
2727
tar -xzvf ruby-#{node['ruby']['version']}.tar.gz
2828
cd ruby-#{node['ruby']['version']}
2929
./configure

0 commit comments

Comments
 (0)