Module: Subcheat::Svn::Cli

Included in:
Subcheat::Svn
Defined in:
lib/subcheat/svn.rb

Overview

Interact with Subversion through the command-line interface svn.

Instance Method Summary collapse

Instance Method Details

#attr(name) ⇒ Object

Extract a working copy attribute, like URL or revision number.



19
20
21
# File 'lib/subcheat/svn.rb', line 19

def attr(name)
  info[/^#{name}: (.+?)$/, 1]
end

#infoObject

Retrieve information about the working copy.



29
30
31
# File 'lib/subcheat/svn.rb', line 29

def info
  @info ||= svn('info')
end

#log(repo, *arguments) ⇒ Object

Read the Subversion logs for a given path.



24
25
26
# File 'lib/subcheat/svn.rb', line 24

def log(repo, *arguments)
  svn("log #{repo} #{[*arguments].join(' ')}")
end