Created
December 4, 2016 16:43
-
-
Save jeremymv2/9d491b1b43d9d70fedb6d870b6107ed2 to your computer and use it in GitHub Desktop.
question1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
afile = '/foo.txt' | |
file afile do | |
content 'bar' | |
end | |
if ::File.exist?(afile) | |
execute "myapp #{afile}" | |
end | |
# is this bad recipe code? what will happen on the 1st converge? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment