Method: R10K::Environment::SVN#sync

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

#syncvoid

This method returns an undefined value.

Perform an initial checkout of the SVN repository or update the repository.

If the environment is being created for the first time, it will automatically update all modules to ensure that the environment is complete.

Since:

  • 1.3.0



60
61
62
63
64
65
66
67
# File 'lib/r10k/environment/svn.rb', line 60

def sync
  if @working_dir.is_svn?
    @working_dir.update
  else
    @working_dir.checkout(@remote)
  end
  @synced = true
end