- From: Manoj Thakkar <
>
- To: "
" <
>
- Subject: [chef] not able to run command in ruby block
- Date: Tue, 29 Oct 2013 15:26:05 -0700
HI, this is what my code looks like , somehow the #{host} below is not replaced correctly in the grep,
any clues why ?
ruby_block "acc-deploy-host" do block do
host=`hostname -s` node.set[:acc_deploy] = `cat /local_app/account-rest.properties | grep -i "#{host}" | cut -d":" -f2 `
puts "value is #{node['acc_deploy']}"end
end
Thanks
Manoj
- [chef] not able to run command in ruby block, Manoj Thakkar, 10/29/2013
Archive powered by MHonArc 2.6.16.