Class: JenkinsJob::Common::Git
- Inherits:
- BasicObject
- Defined in:
- lib/rubyjobbuilderdsl/common/git.rb
Instance Attribute Summary collapse
-
#basedir_ ⇒ Object
readonly
Returns the value of attribute basedir_.
-
#branches_ ⇒ Object
readonly
Returns the value of attribute branches_.
-
#choosing_strategy_ ⇒ Object
readonly
Returns the value of attribute choosing_strategy_.
-
#clean_ ⇒ Object
readonly
Returns the value of attribute clean_.
-
#credentials_ ⇒ Object
readonly
Returns the value of attribute credentials_.
-
#fastpoll_ ⇒ Object
readonly
Returns the value of attribute fastpoll_.
-
#files_ ⇒ Object
readonly
Returns the value of attribute files_.
-
#git_config_email_ ⇒ Object
readonly
Returns the value of attribute git_config_email_.
-
#git_config_name_ ⇒ Object
readonly
Returns the value of attribute git_config_name_.
-
#jgit_ ⇒ Object
readonly
Returns the value of attribute jgit_.
-
#reference_repo_ ⇒ Object
readonly
Returns the value of attribute reference_repo_.
-
#refspec_ ⇒ Object
readonly
Returns the value of attribute refspec_.
-
#url_ ⇒ Object
readonly
Returns the value of attribute url_.
-
#wipe_workspace_ ⇒ Object
readonly
Returns the value of attribute wipe_workspace_.
Instance Method Summary collapse
- #basedir(value) ⇒ Object
- #branch(*value) ⇒ Object
-
#branches(*value) ⇒ Object
deprecated
Deprecated.
Please use #branch
- #choosing_strategy(value) ⇒ Object
- #clean(value = false) ⇒ Object
- #credentials(value) ⇒ Object
- #fastpoll(value = true) ⇒ Object
- #file(*value) ⇒ Object
- #git_config_email(value) ⇒ Object
- #git_config_name(value) ⇒ Object
-
#initialize ⇒ Git
constructor
A new instance of Git.
- #jgit ⇒ Object
- #reference_repo(value) ⇒ Object
- #refspec(value) ⇒ Object
- #url(value) ⇒ Object
- #wipe_workspace(value = true) ⇒ Object
Constructor Details
#initialize ⇒ Git
Returns a new instance of Git.
8 9 10 11 12 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 8 def initialize @fastpoll_ = true @branches_ = ['*/master'] @jgit_ = false end |
Instance Attribute Details
#basedir_ ⇒ Object (readonly)
Returns the value of attribute basedir_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4 def basedir_ @basedir_ end |
#branches_ ⇒ Object (readonly)
Returns the value of attribute branches_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4 def branches_ @branches_ end |
#choosing_strategy_ ⇒ Object (readonly)
Returns the value of attribute choosing_strategy_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4 def choosing_strategy_ @choosing_strategy_ end |
#clean_ ⇒ Object (readonly)
Returns the value of attribute clean_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4 def clean_ @clean_ end |
#credentials_ ⇒ Object (readonly)
Returns the value of attribute credentials_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4 def credentials_ @credentials_ end |
#fastpoll_ ⇒ Object (readonly)
Returns the value of attribute fastpoll_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4 def fastpoll_ @fastpoll_ end |
#files_ ⇒ Object (readonly)
Returns the value of attribute files_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4 def files_ @files_ end |
#git_config_email_ ⇒ Object (readonly)
Returns the value of attribute git_config_email_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4 def git_config_email_ @git_config_email_ end |
#git_config_name_ ⇒ Object (readonly)
Returns the value of attribute git_config_name_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4 def git_config_name_ @git_config_name_ end |
#jgit_ ⇒ Object (readonly)
Returns the value of attribute jgit_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4 def jgit_ @jgit_ end |
#reference_repo_ ⇒ Object (readonly)
Returns the value of attribute reference_repo_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4 def reference_repo_ @reference_repo_ end |
#refspec_ ⇒ Object (readonly)
Returns the value of attribute refspec_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4 def refspec_ @refspec_ end |
#url_ ⇒ Object (readonly)
Returns the value of attribute url_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4 def url_ @url_ end |
#wipe_workspace_ ⇒ Object (readonly)
Returns the value of attribute wipe_workspace_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4 def wipe_workspace_ @wipe_workspace_ end |
Instance Method Details
#basedir(value) ⇒ Object
18 19 20 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 18 def basedir(value) @basedir_ = value end |
#branch(*value) ⇒ Object
31 32 33 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 31 def branch(*value) @branches_ = value end |
#branches(*value) ⇒ Object
Please use #branch
27 28 29 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 27 def branches(*value) branch(*value) end |
#choosing_strategy(value) ⇒ Object
39 40 41 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 39 def choosing_strategy(value) @choosing_strategy_ = value end |
#clean(value = false) ⇒ Object
59 60 61 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 59 def clean(value = false) @clean_ = value end |
#credentials(value) ⇒ Object
71 72 73 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 71 def credentials(value) @credentials_ = value end |
#fastpoll(value = true) ⇒ Object
51 52 53 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 51 def fastpoll(value = true) @fastpoll_ = value end |
#file(*value) ⇒ Object
55 56 57 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 55 def file(*value) @files_ = value end |
#git_config_email(value) ⇒ Object
47 48 49 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 47 def git_config_email(value) @git_config_email_ = value end |
#git_config_name(value) ⇒ Object
43 44 45 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 43 def git_config_name(value) @git_config_name_ = value end |
#jgit ⇒ Object
67 68 69 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 67 def jgit @jgit_ = true end |
#reference_repo(value) ⇒ Object
22 23 24 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 22 def reference_repo(value) @reference_repo_ = value end |
#refspec(value) ⇒ Object
35 36 37 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 35 def refspec(value) @refspec_ = value end |
#url(value) ⇒ Object
14 15 16 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 14 def url(value) @url_ = value end |
#wipe_workspace(value = true) ⇒ Object
63 64 65 |
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 63 def wipe_workspace(value = true) @wipe_workspace_ = value end |