Class: BlinkyMonitor::JenkinsServer
- Inherits:
-
Object
- Object
- BlinkyMonitor::JenkinsServer
- Defined in:
- lib/blinky_monitor/jenkins_server.rb
Instance Method Summary collapse
-
#initialize(url) ⇒ JenkinsServer
constructor
A new instance of JenkinsServer.
- #status ⇒ Object
Constructor Details
#initialize(url) ⇒ JenkinsServer
Returns a new instance of JenkinsServer.
5 6 7 |
# File 'lib/blinky_monitor/jenkins_server.rb', line 5 def initialize url @url = url end |
Instance Method Details
#status ⇒ Object
9 10 11 |
# File 'lib/blinky_monitor/jenkins_server.rb', line 9 def status open("#{@url}/rssLatest").read.include?('(broken') ? :failure : :success end |