Module: Orchestration::HealthcheckBase::ClassMethods
- Defined in:
- lib/orchestration/healthcheck_base.rb
Instance Method Summary collapse
Instance Method Details
#start(env = nil, terminal = nil) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/orchestration/healthcheck_base.rb', line 12 def start(env = nil, terminal = nil) env ||= Environment.new terminal ||= Terminal.new check = ServiceCheck.new(new(env), terminal) exit 1 unless check.run end |