mLewisLogic/saddle

View on GitHub
bin/template/lib/saddle-client/endpoints/status.rb

Summary

Maintainability
A
0 mins
Test Coverage
# -*- encoding: utf-8 -*-

require 'saddle/endpoint'

module <%= root_module %>
  module Endpoints

    class Status < Saddle::TraversalEndpoint

      ABSOLUTE_PATH = ''

      def healthy?
        get('health') == 'OK'
      end

    end

  end
end