Class: Textus::Manifest
- Inherits:
-
Data
- Object
- Data
- Textus::Manifest
- Defined in:
- lib/textus/manifest.rb,
lib/textus/manifest.rb,
lib/textus/manifest/data.rb,
lib/textus/manifest/entry.rb,
lib/textus/manifest/rules.rb,
lib/textus/manifest/policy.rb,
lib/textus/manifest/schema.rb,
lib/textus/manifest/resolver.rb,
lib/textus/manifest/entry/base.rb,
lib/textus/manifest/entry/leaf.rb,
lib/textus/manifest/role_kinds.rb,
lib/textus/manifest/entry/intake.rb,
lib/textus/manifest/entry/nested.rb,
lib/textus/manifest/entry/parser.rb,
lib/textus/manifest/entry/derived.rb,
lib/textus/manifest/entry/validators.rb,
lib/textus/manifest/entry/validators/events.rb,
lib/textus/manifest/entry/validators/inject_boot.rb,
lib/textus/manifest/entry/validators/publish_each.rb,
lib/textus/manifest/entry/validators/format_matrix.rb,
lib/textus/manifest/entry/validators/index_filename.rb
Overview
rubocop:disable Style/OneClassPerFile
Defined Under Namespace
Modules: RoleKinds, Schema Classes: Data, Entry, Policy, Resolver, Rules
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#policy ⇒ Object
readonly
Returns the value of attribute policy.
-
#resolver ⇒ Object
readonly
Returns the value of attribute resolver.
-
#rules ⇒ Object
readonly
Returns the value of attribute rules.
Class Method Summary collapse
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data
14 15 16 |
# File 'lib/textus/manifest.rb', line 14 def data @data end |
#policy ⇒ Object (readonly)
Returns the value of attribute policy
14 15 16 |
# File 'lib/textus/manifest.rb', line 14 def policy @policy end |
#resolver ⇒ Object (readonly)
Returns the value of attribute resolver
14 15 16 |
# File 'lib/textus/manifest.rb', line 14 def resolver @resolver end |
#rules ⇒ Object (readonly)
Returns the value of attribute rules
14 15 16 |
# File 'lib/textus/manifest.rb', line 14 def rules @rules end |
Class Method Details
.load(root) ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'lib/textus/manifest.rb', line 34 def load(root) manifest_path = File.join(root, "manifest.yaml") raise IoError.new("manifest not found: #{manifest_path}") unless File.exist?(manifest_path) raw = YAML.safe_load_file(manifest_path, aliases: false) check_version!(raw, manifest_path) build(raw, root) end |
.parse(yaml_text, root: ".") ⇒ Object
28 29 30 31 32 |
# File 'lib/textus/manifest.rb', line 28 def parse(yaml_text, root: ".") raw = YAML.safe_load(yaml_text, aliases: false) check_version!(raw, "<string>") build(raw, root) end |