Class: Cerberus::SCM::CVS
- Inherits:
-
Base
- Object
- Base
- Cerberus::SCM::CVS
show all
- Defined in:
- lib/cerberus/scm/cvs.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#current_revision ⇒ Object
23
24
25
|
# File 'lib/cerberus/scm/cvs.rb', line 23
def current_revision
raise NotImplementedError
end
|
#has_changes? ⇒ Boolean
19
20
21
|
# File 'lib/cerberus/scm/cvs.rb', line 19
def has_changes?
@status =~ /^[U|P|C] (.*)/
end
|
#installed? ⇒ Boolean
6
7
8
|
# File 'lib/cerberus/scm/cvs.rb', line 6
def installed?
exec_successful? "#{@config[:bin_path]}cvs --version"
end
|
#last_author ⇒ Object
35
36
37
|
# File 'lib/cerberus/scm/cvs.rb', line 35
def last_author
raise NotImplementedError
end
|
#last_commit_message ⇒ Object
31
32
33
|
# File 'lib/cerberus/scm/cvs.rb', line 31
def last_commit_message
raise NotImplementedError
end
|
#update! ⇒ Object
10
11
12
13
14
15
16
17
|
# File 'lib/cerberus/scm/cvs.rb', line 10
def update!
if test(?d, @path + '/CVS')
@status = execute("update")
else
FileUtils.mkpath(@path) unless test(?d,@path)
@status = execute("checkout", nil, @config[:scm, :url])
end
end
|
#url ⇒ Object
27
28
29
|
# File 'lib/cerberus/scm/cvs.rb', line 27
def url
raise NotImplementedError
end
|