Class GrainsRegEx

All Implemented Interfaces:
Target<String>

public class GrainsRegEx extends DictionaryTarget implements Target<String>
Matcher based on salt grains
  • Constructor Details

    • GrainsRegEx

      public GrainsRegEx(String target)
      Creates a grains matcher
      Parameters:
      target - the targeting expression
    • GrainsRegEx

      public GrainsRegEx(String target, char delimiter)
      Creates a grains matcher
      Parameters:
      target - the targeting expression
      delimiter - the character to delimit nesting in the grain name
    • GrainsRegEx

      public GrainsRegEx(String grain, String regex)
      Creates a grains matcher
      Parameters:
      grain - the grain name
      regex - the regular expression to match
    • GrainsRegEx

      public GrainsRegEx(String grain, String regex, char delimiter)
      Creates a grains matcher
      Parameters:
      grain - the grain name
      regex - the regular expression to match
      delimiter - the character to delimit nesting in the grain name