Module: Avm::Sources::Base::Update
- Defined in:
- lib/avm/sources/base/update.rb
Instance Method Summary collapse
-
#on_sub_updated ⇒ Object
To override in subclasses.
- #update ⇒ Object
- #update_self ⇒ Object
- #update_self_commit_message ⇒ Object
-
#update_self_content ⇒ Object
Update source self content.
Instance Method Details
#on_sub_updated ⇒ Object
To override in subclasses.
8 9 10 |
# File 'lib/avm/sources/base/update.rb', line 8 def on_sub_updated # Do nothing end |
#update ⇒ Object
12 13 14 15 |
# File 'lib/avm/sources/base/update.rb', line 12 def update update_self update_subs end |
#update_self ⇒ Object
17 18 19 20 21 22 |
# File 'lib/avm/sources/base/update.rb', line 17 def update_self scm.commit_if_change(-> { }) do update_self_content parent.if_present(&:on_sub_updated) end end |
#update_self_commit_message ⇒ Object
31 32 33 |
# File 'lib/avm/sources/base/update.rb', line 31 def i18n_translate(__method__) end |
#update_self_content ⇒ Object
Update source self content.
To override in subclasses.
27 28 29 |
# File 'lib/avm/sources/base/update.rb', line 27 def update_self_content # Do nothing end |