Exception: Arrolio::FlavorError
- Defined in:
- lib/arrolio/error.rb
Overview
Raised when a flavor is missing required files (manifest.yml, layout_spec.yml, etc.) or has malformed configuration. Carries the flavor directory and/or manifest path for diagnosis.
Instance Attribute Summary collapse
-
#flavor_dir ⇒ Object
readonly
Returns the value of attribute flavor_dir.
-
#manifest_path ⇒ Object
readonly
Returns the value of attribute manifest_path.
-
#missing_fields ⇒ Object
readonly
Returns the value of attribute missing_fields.
-
#missing_role ⇒ Object
readonly
Returns the value of attribute missing_role.
Instance Method Summary collapse
-
#initialize(message, flavor_dir: nil, manifest_path: nil, missing_fields: nil, missing_role: nil) ⇒ FlavorError
constructor
A new instance of FlavorError.
Constructor Details
#initialize(message, flavor_dir: nil, manifest_path: nil, missing_fields: nil, missing_role: nil) ⇒ FlavorError
Returns a new instance of FlavorError.
61 62 63 64 65 66 67 68 |
# File 'lib/arrolio/error.rb', line 61 def initialize(, flavor_dir: nil, manifest_path: nil, missing_fields: nil, missing_role: nil) @flavor_dir = flavor_dir @manifest_path = manifest_path @missing_fields = missing_fields @missing_role = missing_role super() end |
Instance Attribute Details
#flavor_dir ⇒ Object (readonly)
Returns the value of attribute flavor_dir.
59 60 61 |
# File 'lib/arrolio/error.rb', line 59 def flavor_dir @flavor_dir end |
#manifest_path ⇒ Object (readonly)
Returns the value of attribute manifest_path.
59 60 61 |
# File 'lib/arrolio/error.rb', line 59 def manifest_path @manifest_path end |
#missing_fields ⇒ Object (readonly)
Returns the value of attribute missing_fields.
59 60 61 |
# File 'lib/arrolio/error.rb', line 59 def missing_fields @missing_fields end |
#missing_role ⇒ Object (readonly)
Returns the value of attribute missing_role.
59 60 61 |
# File 'lib/arrolio/error.rb', line 59 def missing_role @missing_role end |