Skip to content

Commit dc327e7

Browse files
committed
Parameterize ['ruby_package']['version']
1 parent 5aa1ce5 commit dc327e7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

attributes/ruby.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22
default['ruby_build']['version'] = "1.9.3-p429"
33

44
# Ruby version for rvm
5-
default['rvm']['default_ruby'] = "ruby-1.9.3-p429"
5+
default['rvm']['default_ruby'] = "ruby-1.9.3-p429"
6+
7+
# Ruby version from the OS package manager
8+
default['ruby_package']['version'] = "ruby1.9.1-dev"

recipes/ruby_package.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Optional recipe to install a system wide ruby
22
# from the OS package manager
33

4-
package "ruby1.9.1-dev"
4+
package(node['ruby_package']['version'])
55

66
gem_package "bundler"

0 commit comments

Comments
 (0)