Class: Klenod::Build::AppliedUpdate
- Inherits:
-
Data
- Object
- Data
- Klenod::Build::AppliedUpdate
- Defined in:
- lib/klenod/build/context.rb
Instance Attribute Summary collapse
-
#asset_write_result ⇒ Object
readonly
Returns the value of attribute asset_write_result.
-
#entry ⇒ Object
readonly
Returns the value of attribute entry.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#exports ⇒ Object
readonly
Returns the value of attribute exports.
Instance Method Summary collapse
- #asset_files_changed? ⇒ Boolean
- #each_error(&block) ⇒ Object
- #entry_record ⇒ Object
- #error_messages ⇒ Object
- #failed? ⇒ Boolean
- #removed_asset_paths ⇒ Object
- #skipped_asset_paths ⇒ Object
- #success? ⇒ Boolean
- #written_asset_paths ⇒ Object
Instance Attribute Details
#asset_write_result ⇒ Object (readonly)
Returns the value of attribute asset_write_result
34 35 36 |
# File 'lib/klenod/build/context.rb', line 34 def asset_write_result @asset_write_result end |
#entry ⇒ Object (readonly)
Returns the value of attribute entry
34 35 36 |
# File 'lib/klenod/build/context.rb', line 34 def entry @entry end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors
34 35 36 |
# File 'lib/klenod/build/context.rb', line 34 def errors @errors end |
#event ⇒ Object (readonly)
Returns the value of attribute event
34 35 36 |
# File 'lib/klenod/build/context.rb', line 34 def event @event end |
#exports ⇒ Object (readonly)
Returns the value of attribute exports
34 35 36 |
# File 'lib/klenod/build/context.rb', line 34 def exports @exports end |
Instance Method Details
#asset_files_changed? ⇒ Boolean
57 58 59 |
# File 'lib/klenod/build/context.rb', line 57 def asset_files_changed? asset_write_result && !asset_write_result.empty? end |
#each_error(&block) ⇒ Object
47 48 49 50 51 |
# File 'lib/klenod/build/context.rb', line 47 def each_error(&block) return errors.each unless block errors.each(&block) end |
#entry_record ⇒ Object
43 44 45 |
# File 'lib/klenod/build/context.rb', line 43 def entry_record entry&.record end |
#error_messages ⇒ Object
53 54 55 |
# File 'lib/klenod/build/context.rb', line 53 def errors.map { |module_id, error| "#{module_id}: #{error.class}: #{error.}" } end |
#failed? ⇒ Boolean
39 40 41 |
# File 'lib/klenod/build/context.rb', line 39 def failed? !success? end |
#removed_asset_paths ⇒ Object
65 66 67 |
# File 'lib/klenod/build/context.rb', line 65 def removed_asset_paths asset_write_result&.removed_paths || [] end |
#skipped_asset_paths ⇒ Object
69 70 71 |
# File 'lib/klenod/build/context.rb', line 69 def skipped_asset_paths asset_write_result&.skipped_paths || [] end |
#success? ⇒ Boolean
35 36 37 |
# File 'lib/klenod/build/context.rb', line 35 def success? errors.empty? end |
#written_asset_paths ⇒ Object
61 62 63 |
# File 'lib/klenod/build/context.rb', line 61 def written_asset_paths asset_write_result&.written_paths || [] end |