Class: BetweenMeals::Repo::Svn::Cmd

Inherits:
Cmd
  • Object
show all
Defined in:
lib/between_meals/repo/svn/cmd.rb

Instance Attribute Summary

Attributes inherited from Cmd

#bin

Instance Method Summary collapse

Methods inherited from Cmd

#cmd, #initialize

Constructor Details

This class inherits a constructor from BetweenMeals::Cmd

Instance Method Details

#cleanup(repo_path) ⇒ Object



46
47
48
# File 'lib/between_meals/repo/svn/cmd.rb', line 46

def cleanup(repo_path)
  cmd("cleanup #{repo_path}")
end

#co(url, repo_path) ⇒ Object



34
35
36
# File 'lib/between_meals/repo/svn/cmd.rb', line 34

def co(url, repo_path)
  cmd("co --ignore-externals #{url} #{repo_path}")
end

#diff(start_ref, end_ref, repo_path) ⇒ Object



22
23
24
# File 'lib/between_meals/repo/svn/cmd.rb', line 22

def diff(start_ref, end_ref, repo_path)
  cmd("diff -r #{start_ref}:#{end_ref} --summarize #{repo_path}")
end

#info(repo_path) ⇒ Object



26
27
28
# File 'lib/between_meals/repo/svn/cmd.rb', line 26

def info(repo_path)
  cmd("info #{repo_path}")
end

#info_r(ref, repo_path) ⇒ Object



30
31
32
# File 'lib/between_meals/repo/svn/cmd.rb', line 30

def info_r(ref, repo_path)
  cmd("info -r #{ref} #{repo_path}")
end

#ls(repo_path) ⇒ Object



50
51
52
# File 'lib/between_meals/repo/svn/cmd.rb', line 50

def ls(repo_path)
  cmd("ls --depth infinity #{repo_path}")
end

#revert(repo_path) ⇒ Object



38
39
40
# File 'lib/between_meals/repo/svn/cmd.rb', line 38

def revert(repo_path)
  cmd("revert -R #{repo_path}")
end

#update(repo_path) ⇒ Object



42
43
44
# File 'lib/between_meals/repo/svn/cmd.rb', line 42

def update(repo_path)
  cmd("update #{repo_path}")
end