Method: R10K::Module::Forge#sync
- Defined in:
- lib/r10k/module/forge.rb
#sync(opts = {}) ⇒ Boolean
Returns true if the module was updated, false otherwise.
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/r10k/module/forge.rb', line 64 def sync(opts={}) updated = false if should_sync? case status when :absent install updated = true when :outdated upgrade updated = true when :mismatched reinstall updated = true end maybe_delete_spec_dir end updated end |