Class: JenkinsJob::Common::GerritProject
- Inherits:
- BasicObject
- Defined in:
- lib/rubyjobbuilderdsl/common/gerrit.rb
Instance Attribute Summary collapse
-
#branches_ ⇒ Object
readonly
Returns the value of attribute branches_.
-
#files_ ⇒ Object
readonly
Returns the value of attribute files_.
-
#project_ ⇒ Object
readonly
Returns the value of attribute project_.
Instance Method Summary collapse
- #branch(*value) ⇒ Object
- #file(*value) ⇒ Object
-
#initialize(project) ⇒ GerritProject
constructor
A new instance of GerritProject.
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 |