Forum: Cfengine Help
Subject: Re: Command execution for each copied file
Author: nico
Link to topic: https://cfengine.com/forum/read.php?3,17932,17935#msg-17935

I thought of doing something like 

bundle agent interfaces
{
   ...
   classes => classes => onrepair("$(this.promiser)")
   ...
}

body classes onrepair(class)
{
    promise_repaired => { "$(class)" };
}

Two problems with this:
1. I do not "know" in the command section what the class will be, that depends 
on the which file was changed
2. this.promiser does not expand properly, it just comes out as the string 
"$(this.promiser)"

_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to