Class: Textus::Manifest::Rules::Block

Inherits:
Object
  • Object
show all
Defined in:
lib/textus/manifest/rules.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw) ⇒ Block

Returns a new instance of Block.



48
49
50
51
52
53
# File 'lib/textus/manifest/rules.rb', line 48

def initialize(raw)
  @match = raw["match"] or raise Textus::UsageError.new("rule block missing match:")
  @handler_allowlist = parse_handler_allowlist(raw["intake_handler_allowlist"])
  @guard = parse_guard(raw["guard"])
  @lifecycle = parse_lifecycle(raw["lifecycle"])
end

Instance Attribute Details

#guardObject (readonly)

Returns the value of attribute guard.



46
47
48
# File 'lib/textus/manifest/rules.rb', line 46

def guard
  @guard
end

#handler_allowlistObject (readonly)

Returns the value of attribute handler_allowlist.



46
47
48
# File 'lib/textus/manifest/rules.rb', line 46

def handler_allowlist
  @handler_allowlist
end

#lifecycleObject (readonly)

Returns the value of attribute lifecycle.



46
47
48
# File 'lib/textus/manifest/rules.rb', line 46

def lifecycle
  @lifecycle
end

#matchObject (readonly)

Returns the value of attribute match.



46
47
48
# File 'lib/textus/manifest/rules.rb', line 46

def match
  @match
end