Class: JenkinsJob::Common::GerritProject

Inherits:
BasicObject
Defined in:
lib/rubyjobbuilderdsl/common/gerrit.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project) ⇒ GerritProject

Returns a new instance of GerritProject.



39
40
41
42
# File 'lib/rubyjobbuilderdsl/common/gerrit.rb', line 39

def initialize(project)
  @project_ = project
  @branches_ = ['**']
end

Instance Attribute Details

#branches_Object (readonly)

Returns the value of attribute branches_.



37
38
39
# File 'lib/rubyjobbuilderdsl/common/gerrit.rb', line 37

def branches_
  @branches_
end

#files_Object (readonly)

Returns the value of attribute files_.



37
38
39
# File 'lib/rubyjobbuilderdsl/common/gerrit.rb', line 37

def files_
  @files_
end

#project_Object (readonly)

Returns the value of attribute project_.



37
38
39
# File 'lib/rubyjobbuilderdsl/common/gerrit.rb', line 37

def project_
  @project_
end

Instance Method Details

#branch(*value) ⇒ Object



44
45
46
# File 'lib/rubyjobbuilderdsl/common/gerrit.rb', line 44

def branch(*value)
  @branches_ = value
end

#file(*value) ⇒ Object



48
49
50
# File 'lib/rubyjobbuilderdsl/common/gerrit.rb', line 48

def file(*value)
  @files_ = value
end