Class: Buildpack::ManifestValidator
- Inherits:
-
Object
- Object
- Buildpack::ManifestValidator
- Defined in:
- lib/buildpack/manifest_validator.rb
Defined Under Namespace
Classes: ManifestValidationError
Constant Summary collapse
- SCHEMA_FILE =
File.join(File.dirname(__FILE__), 'packager', 'manifest_schema.yml')
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(manifest_path) ⇒ ManifestValidator
constructor
A new instance of ManifestValidator.
- #valid? ⇒ Boolean
Constructor Details
#initialize(manifest_path) ⇒ ManifestValidator
Returns a new instance of ManifestValidator.
15 16 17 |
# File 'lib/buildpack/manifest_validator.rb', line 15 def initialize(manifest_path) @manifest_path = manifest_path end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
13 14 15 |
# File 'lib/buildpack/manifest_validator.rb', line 13 def errors @errors end |
Instance Method Details
#valid? ⇒ Boolean
19 20 21 22 |
# File 'lib/buildpack/manifest_validator.rb', line 19 def valid? validate errors.empty? end |