Rebuilding a file if files have changed
- by Todd Strauch
I'm having a hard time wrapping my head around this. It seems trivial, but I'm not getting it.
I have two files. If either of those two files changes, I want to rebuild one of them.
Essentially:
if file a changes or file b changes
then file {"a":
content => template('a.erb', 'b.erb'),
}
I know I can audit a file for change, I just don't know how to include that within a conditional. Can anyone point me in the right direction?