Skip to content

Instantly share code, notes, and snippets.

@jeremymv2
Created December 4, 2016 16:43
Show Gist options
  • Save jeremymv2/9d491b1b43d9d70fedb6d870b6107ed2 to your computer and use it in GitHub Desktop.
Save jeremymv2/9d491b1b43d9d70fedb6d870b6107ed2 to your computer and use it in GitHub Desktop.
question1
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