Class: Bamboo::Service::Status

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet_x/bamboo/server.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, log_message) ⇒ Status

Returns a new instance of Status.



68
69
70
71
# File 'lib/puppet_x/bamboo/server.rb', line 68

def initialize(status, log_message)
  @status = status
  @log_message = log_message
end

Instance Attribute Details

#log_messageObject (readonly)

Returns the value of attribute log_message.



66
67
68
# File 'lib/puppet_x/bamboo/server.rb', line 66

def log_message
  @log_message
end

#statusObject (readonly)

Returns the value of attribute status.



66
67
68
# File 'lib/puppet_x/bamboo/server.rb', line 66

def status
  @status
end

Class Method Details

.broken(log_message) ⇒ Object

Service failed to start up and and will not recover by waiting any longer.



87
88
89
# File 'lib/puppet_x/bamboo/server.rb', line 87

def self.broken(log_message)
  Status.new(:broken, log_message)
end

.not_running(log_message) ⇒ Object

Service is still starting up …



75
76
77
# File 'lib/puppet_x/bamboo/server.rb', line 75

def self.not_running(log_message)
  Status.new(:not_running, log_message)
end

.runningObject

Service is running.



81
82
83
# File 'lib/puppet_x/bamboo/server.rb', line 81

def self.running
  Status.new(:running, '')
end