[ Version ( since = "0.7" ) ]
public IntBool aug_defnode (string name, string expr, string val) throws Error
define an Augeas node
Defines a variable name
whose value is the result of evaluating expr
.
If expr
evaluates to an empty nodeset, a node is created, equivalent to calling
aug_set expr
, value
. name
will be the
nodeset containing that single node.
On success this returns a pair containing the number of nodes in the nodeset, and a boolean flag if a node was created.
this |
A GuestfsSession object |
a IntBool object, or NULL on error |