Forum: Cfengine Help
Subject: Re: Questions about the reference manual
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18107,18201#msg-18201
mwlarsen Wrote:
> > > 1. depth_search => urecurse("inf");
> > 2.
> > 3. body depth_search urecurse(d)
> > 4. {
> > 5. depth => "${d}";
> > 6. exclude_dirs => { "\.svn", "\.git" };
> > 7. }
> >
>
> Perhaps it would help if I had a clue what the
> symbols "=>" and "->" mean. They're not operators
> I'm familiar with from any of the scripting
> languages I've used. Can you describe their
> meaning? Give them a name?
I don't see anything with a '->'. I'm getting the impression that you have no
programming experience. If, as you say, you understood lines five and six then
I think you already have a grasp of what '=>' means. It tells the left hand
side of '=>' to use the right hand side values.
> > Line 1 is from a promise. Parts of a promise
> are
> > comprised of external body parts.
>
> What promise is line 1 from? What are the
> "external body parts" you're referring to?
>From the promise in your own example.
> > Line 3 started the body part of the
> depth_search
> > type specifically named urecurse. This name
> could
> > be anything.
>
> I'm not grasping what you mean by "depth_search
> type specifically named urecurse". There are
> different types of depth_search?
To recrusively search down into a directory and all or some of its
subdirectories.
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine