Method: R10K::Module::SVN#sync

Defined in:
lib/r10k/module/svn.rb

#sync(opts = {}) ⇒ Boolean

Returns true if the module was updated, false otherwise.

Parameters:

  • opts (Hash) (defaults to: {})

    Deprecated

Returns:

  • (Boolean)

    true if the module was updated, false otherwise



78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'lib/r10k/module/svn.rb', line 78

def sync(opts={})
  updated = false
  if should_sync?
    case status
    when :absent
      install
      updated = true
    when :mismatched
      reinstall
      updated = true
    when :outdated
      update
      updated = true
    end
    maybe_delete_spec_dir
  end
  updated
end