secret
Created

part_of_role.rb

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
override_attributes(
"rvm" => {
"gems" =>
{
"ruby-1.9.2-p290-passenger" =>
[
{"name" => "ohai"},
{"name" => "chef"},
{
"name" => "passenger",
"version" => "3.0.12"
}
]
},
"rubies" => ["ruby-1.9.2-p290 --passenger"],
"default_ruby" => "ruby-1.9.2-p290-passenger"
}
)
version.rb
Ruby
1 2 3
rvm_ruby_version = node['rvm']['default_ruby']
passenger_version = ''
node['rvm']['gems'][rvm_ruby_version].each {|g| passenger_version = g['version'] if g['name'] == 'passenger'}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.