Class | Augeas |
In: |
lib/augeas.rb
|
Parent: | Object |
Wrapper class for the augeas library.
Create a new Augeas instance and return it.
Use root as the filesystem root. If root is nil, use the value of the environment variable AUGEAS_ROOT. If that doesn‘t exist either, use "/".
loadpath is a colon-spearated list of directories that modules should be searched in. This is in addition to the standard load path and the directories in AUGEAS_LENS_LIB
flags is a bitmask (see enum aug_flags)
When a block is given, the Augeas instance is passed as the only argument into the block and closed when the block exits. In that case, the return value of the block is the return value of open. With no block, the Augeas instance is returned.
Clear all transforms under /augeas/load. If load is called right after this, there will be no files under +/files+
Set one or multiple elemens to path. Multiple elements are mainly sensible with a path like …/array[last()+1], since this will append all elements.
Add a transform under /augeas/load
The HASH can contain the following entries