Chef-sugar 'which' at runtime


#1

I would like to use chef-sugar’s “which” method to determine the full path to the installed ruby, however, our cookbook is installing ruby. So what’s the best way to evaluate that at runtime?

Thanks,
Curtis

Curtis Stewart
Consultant
m 217.390.5067
Skype cstewart8710
cstewart@momentumsi.commailto:cstewart@momentumsi.com
www.momentumsi.comhttp://www.momentumsi.com/

[cid:71466434-A311-4F82-BC03-F7D6BA0FA526]http://www.momentumsi.com/http://www.momentumsi.com/

Cloud Migration - Architecture - DevOps - Big Data - App Dev


#2

What about notifying a ruby_block that decides that after ruby has been installed?

Mikael Henriksson
M: +46 73 03 93 200
E: mikael@zoolutions.se
W: http://flavors.me/mhenrixon/

Get Skype and call me for free.

From: Curtis Stewart, cstewart@momentumsi.com
Reply: chef@lists.opscode.com chef@lists.opscode.com
Date: 12 May 2014 at 14:47:10
To: chef@lists.opscode.com chef@lists.opscode.com
Subject: [chef] chef-sugar ‘which’ at runtime

I would like to use chef-sugar’s “which” method to determine the full path to the installed ruby, however, our cookbook is installing ruby. So what’s the best way to evaluate that at runtime?

Thanks,
Curtis

Curtis Stewart
Consultant
m 217.390.5067
Skype cstewart8710
cstewart@momentumsi.com
www.momentumsi.com

Cloud Migration - Architecture - DevOps - Big Data - App Dev