augeas.rb

Path: lib/puppet/provider/augeas/augeas.rb
Last Update: Wed Dec 09 12:54:29 -0800 2009

Required files

augeas   strscan  

Methods

Included Modules

Puppet::Util

Constants

SAVE_NOOP = "noop"
SAVE_OVERWRITE = "overwrite"
COMMANDS = { "set" => [ :path, :string ], "rm" => [ :path ], "clear" => [ :path ], "insert" => [ :string, :string, :path ], "get" => [ :path, :comparator, :string ], "match" => [ :path, :glob ], "size" => [:comparator, :int], "include" => [:string], "==" => [:glob], "!=" => [:glob]

Public Instance methods

Actually execute the augeas changes.

Determines if augeas acutally needs to run.

Extracts an 2 dimensional array of commands which are in the form of command path value. The input can be

  • A string with one command
  • A string with many commands per line
  • An array of strings.

Used by the need_to_run? method to process get filters. Returns true if there is a match, false if otherwise Assumes a syntax of get /files/path [COMPARATOR] value

Used by the need_to_run? method to process match filters. Returns true if there is a match, false if otherwise

[Validate]