lundi 27 février 2017

what is the right way to use if statement in chef?

here the else part is not working I'm unable to figure out why , how do I execute this code successfully?

service 'McAfeeFramework' do
if{ supports :status =>true}
File.write('c:\chef-repo\n1.txt','running')
else
File.write('c:\chef-repo\n1.txt','not running')
end

Aucun commentaire:

Enregistrer un commentaire