Forum: Cfengine Help Subject: Re: need a working example of how to use "transformer" without $(this.promiser) Author: toddnni Link to topic: https://cfengine.com/forum/read.php?3,21955,21957#msg-21957
I think there are bugs. I was suprised that the transform is not very polished yet. I tried to use a bit more complicated example which didn't work. files: any:: "$(stowdir)/$(fullname)/" comment => "Unzip the package.", create => "true", transformer => "/usr/bin/tar -xof $(stowdir)/$(fullname).$(suffix) -C $(stowdir)", ifvarclass => "restow_$(name)"; Simpler tar example works files: any:: "/tmp/cf_to_tar" create => "true"; "/tmp/cf_transform_test.tbz" comment => "Transform test.", create => "true", transformer => "/usr/bin/tar -czf $(this.promiser) /tmp/cf_to_tar"; but doesn't print anything when inform is true. In conclusion I couldn't either get transform work without "$(this.promiser)", but maybe transformation with a script that creates the file works. I think that the output shouldn't go to the file. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine