Class: Cerberus::SCM::CVS

Inherits:
Base
  • Object
show all
Defined in:
lib/cerberus/scm/cvs.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Cerberus::SCM::Base

Instance Method Details

#current_revisionObject

Raises:

  • (NotImplementedError)


23
24
25
# File 'lib/cerberus/scm/cvs.rb', line 23

def current_revision
  raise NotImplementedError
end

#has_changes?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/cerberus/scm/cvs.rb', line 19

def has_changes?
  @status =~ /^[U|P|C] (.*)/
end

#installed?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/cerberus/scm/cvs.rb', line 6

def installed?
  exec_successful? "#{@config[:bin_path]}cvs --version"
end

#last_authorObject

Raises:

  • (NotImplementedError)


35
36
37
# File 'lib/cerberus/scm/cvs.rb', line 35

def last_author
  raise NotImplementedError
end

#last_commit_messageObject

Raises:

  • (NotImplementedError)


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

#urlObject

Raises:

  • (NotImplementedError)


27
28
29
# File 'lib/cerberus/scm/cvs.rb', line 27

def url
  raise NotImplementedError
end