Simon, with ifvarclass => you can make strings composed of variables, where with the context:: syntax you can't.
Personally i find context:: clearer, but the other is more flexible for "fancy" context handling. M On 01/05/2012 09:36 AM, Simon Blake wrote: > On Wed, Jan 04, 2012 at 03:12:17PM +0100, davidlee said: > >> commands: >> ### If a file was adjusted above, run a command: >> optional_class:: >> "/sbin/service my_service restart" >> ifvarclass => "class_indicating_file_change"; > Is there any particular reason to use the above syntax, rather than > > commands: > ### If a file was adjusted above, run a command: > class_indicating_file_change:: > "/sbin/service my_service restart" > > ? Both seem to work, is one or the other is considered more kosher? > > Cheers > Simon > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cfengine -- CTO and Founder CFEngine http://www.cfengine.com http://www.markburgess.org _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine