Class: Hardhat::Repository::Svn

Inherits:
Object
  • Object
show all
Includes:
Hardhat::Repository
Defined in:
lib/hardhat/repository/svn.rb

Instance Attribute Summary

Attributes included from Hardhat::Repository

#path, #url

Instance Method Summary collapse

Methods included from Hardhat::Repository

#initialize

Instance Method Details

#getObject



4
5
6
7
8
9
10
# File 'lib/hardhat/repository/svn.rb', line 4

def get
  if Dir.exists? path
    system("cd #{path} && svn update --quiet")
  else
    system("svn checkout --quiet #{url} #{path}")
  end
end