Re: CFEngine Help: Re: "any" usebundle

2012-01-06 Thread Oace, Tod R
> Author: mark > Link to topic: https://cfengine.com/forum/read.php?3,24472,24491#msg-24491 > > I tried this > "my famous string" usebundle => test("$(this.promiser)"); > but it didn't work. I regard this as a bug. I found this bug and have > committed a non-fully tested fix to trunk. I w

CFEngine Help: Re: "any" usebundle

2012-01-06 Thread no-reply
Forum: CFEngine Help Subject: Re: "any" usebundle Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,24472,24494#msg-24494 "But what I'd rather do is: methods: "/my/file" usebundle => my_bundle("some-other-parameter"); " Bund

CFEngine Help: Re: "any" usebundle

2012-01-05 Thread no-reply
Forum: CFEngine Help Subject: Re: "any" usebundle Author: mark Link to topic: https://cfengine.com/forum/read.php?3,24472,24491#msg-24491 I tried this bundle agent test { methods: "my famous string" usebundle => test("$(this.promiser)"); } bu

Re: CFEngine Help: Re: CFEngine Help: Re: "any" usebundle

2012-01-05 Thread Oace, Tod R
> Author: sauer > Link to topic: https://cfengine.com/forum/read.php?3,24472,24485#msg-24485 > I use that value as a descriptive name, the same way other promises use it; > usually I choose a more descriptive version of the bundle name, but it always > describes the purpose in one or two words.

CFEngine Help: Re: CFEngine Help: Re: "any" usebundle

2012-01-05 Thread no-reply
Forum: CFEngine Help Subject: Re: CFEngine Help: Re: "any" usebundle Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,24472,24485#msg-24485 Oace, Tod R Wrote: --- > I think called bundles should be able to do the

Re: CFEngine Help: Re: "any" usebundle

2012-01-04 Thread Oace, Tod R
Hi Neil, > The left hand quoted string has not purpose at this time. We often use for > information. Are you looking to pass strings to your bundle? You do that > on the right side: > > "any" usebundle => mybundle("string", "$(var)"); Su

Re: "any" usebundle

2012-01-04 Thread Mark Burgess
On 01/04/2012 08:24 PM, Oace, Tod R wrote: > Hello everyone, > > Is there a way for a bundle to access the "any" value of the following? > > "any" usebundle => my_bundle; > > I was hoping that $(this.promiser) would do it, but it doesn't. Not in

CFEngine Help: Re: "any" usebundle

2012-01-04 Thread no-reply
Forum: CFEngine Help Subject: Re: "any" usebundle Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,24472,24473#msg-24473 The left hand quoted string has not purpose at this time. We often use for information. Are you looking to pass strings to your bundle? Y

"any" usebundle

2012-01-04 Thread Oace, Tod R
Hello everyone, Is there a way for a bundle to access the "any" value of the following? "any" usebundle => my_bundle; I was hoping that $(this.promiser) would do it, but it doesn't. Not in version 3.2.0 anyway. If that could be done then bundle calls could be writt

Re: Just a remark/question about methods any usebundle

2010-12-09 Thread Seva Gluschenko
Bas, classes defined via classes body become global, so you must tune class name to be unique. 2010/12/9 Bas van der Vlies : > I have this bundle: > {{{ > bundle agent quarterly { >          methods: >                 any:: >                         "any" usebund

Just a remark/question about methods any usebundle

2010-12-09 Thread Bas van der Vlies
I have this bundle: {{{ bundle agent quarterly { methods: any:: "any" usebundle => cfengine_daemons_check(); "any" usebundle => system_access_config("lisa");