Class: JenkinsJob::Common::Scms
- Inherits:
- BasicObject
- Defined in:
- lib/rubyjobbuilderdsl/common/scms.rb
Instance Attribute Summary collapse
-
#scms_ ⇒ Object
readonly
Returns the value of attribute scms_.
Instance Method Summary collapse
- #git(&block) ⇒ Object
-
#initialize ⇒ Scms
constructor
A new instance of Scms.
Constructor Details
#initialize ⇒ Scms
Returns a new instance of Scms.
6 7 8 |
# File 'lib/rubyjobbuilderdsl/common/scms.rb', line 6 def initialize @scms_ = [] end |
Instance Attribute Details
#scms_ ⇒ Object (readonly)
Returns the value of attribute scms_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/common/scms.rb', line 4 def scms_ @scms_ end |
Instance Method Details
#git(&block) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/rubyjobbuilderdsl/common/scms.rb', line 10 def git(&block) git = Git.new git.instance_eval(&block) @scms_ << git end |