Class: Serverspec::Type::JenkinsBase
- Defined in:
- lib/serverspec_extra_types/types/jenkins_base.rb
Direct Known Subclasses
Instance Method Summary collapse
- #exist? ⇒ Boolean
-
#initialize(name = nil, options = {}) ⇒ JenkinsBase
constructor
A new instance of JenkinsBase.
Methods inherited from ApiBase
Constructor Details
#initialize(name = nil, options = {}) ⇒ JenkinsBase
Returns a new instance of JenkinsBase.
11 12 13 14 15 16 |
# File 'lib/serverspec_extra_types/types/jenkins_base.rb', line 11 def initialize(name = nil, = {}) super(name, ) @user = ENV['JENKINS_USER'] || nil @password = ENV['JENKINS_PASSWORD'] || nil @url_base = property[:variables][:jenkins_url] || 'http://localhost:8080' end |
Instance Method Details
#exist? ⇒ Boolean
18 19 20 |
# File 'lib/serverspec_extra_types/types/jenkins_base.rb', line 18 def exist? get_inspection.success? end |