Class: BuildMaster::CvsInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/buildmaster/project/cvs_driver.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root, repository) ⇒ CvsInfo

Returns a new instance of CvsInfo.



7
8
9
10
# File 'lib/buildmaster/project/cvs_driver.rb', line 7

def initialize(root, repository)
  @root = root
  @repository = repository
end

Instance Attribute Details

#repositoryObject (readonly)

Returns the value of attribute repository.



4
5
6
# File 'lib/buildmaster/project/cvs_driver.rb', line 4

def repository
  @repository
end

#rootObject (readonly)

Returns the value of attribute root.



4
5
6
# File 'lib/buildmaster/project/cvs_driver.rb', line 4

def root
  @root
end

Class Method Details

.load(folder) ⇒ Object



12
13
14
# File 'lib/buildmaster/project/cvs_driver.rb', line 12

def CvsInfo.load(folder)
  return CvsInfo.new(folder.file('ROOT').load.strip,  folder.file('Repository').load.strip)
end