Sha256: 4ef0694a019a5df7829f6b32e4f32fc702beed45471044ed0ac20a9d9deba3bc

Contents?: true

Size: 320 Bytes

Versions: 28

Compression:

Stored size: 320 Bytes

Contents

module Health
  module Actions
    # The show action.
    class Show < Health::Action
      handle_exception Exception => :down

      def handle(*, response) = response.render view, color: :green

      private

      def down(*, response, _exception) = response.render view, color: :red, status: 503
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
hanamismith-1.4.0 lib/hanamismith/templates/%project_name%/slices/health/actions/show.rb.erb
hanamismith-1.3.0 lib/hanamismith/templates/%project_name%/slices/health/actions/show.rb.erb
hanamismith-1.2.0 lib/hanamismith/templates/%project_name%/slices/health/actions/show.rb.erb
hanamismith-1.1.0 lib/hanamismith/templates/%project_name%/slices/health/actions/show.rb.erb
hanamismith-1.0.0 lib/hanamismith/templates/%project_name%/slices/health/actions/show.rb.erb
hanamismith-0.50.0 lib/hanamismith/templates/%project_name%/slices/health/actions/show.rb.erb
hanamismith-0.49.1 lib/hanamismith/templates/%project_name%/slices/health/actions/show.rb.erb
hanamismith-0.49.0 lib/hanamismith/templates/%project_name%/slices/health/actions/show.rb.erb
hanamismith-0.48.0 lib/hanamismith/templates/%project_name%/slices/health/actions/show.rb.erb
hanamismith-0.47.0 lib/hanamismith/templates/%project_name%/slices/health/actions/show.rb.erb
hanamismith-0.46.0 lib/hanamismith/templates/%project_name%/slices/health/actions/show.rb.erb
hanamismith-0.45.0 lib/hanamismith/templates/%project_name%/slices/health/actions/show.rb.erb
hanamismith-0.44.0 lib/hanamismith/templates/%project_name%/slices/health/actions/show.rb.erb
hanamismith-0.43.0 lib/hanamismith/templates/%project_name%/slices/health/actions/show.rb.erb
hanamismith-0.42.0 lib/hanamismith/templates/%project_name%/slices/health/actions/show.rb.erb
hanamismith-0.41.0 lib/hanamismith/templates/%project_name%/slices/health/actions/show.rb.erb
hanamismith-0.40.0 lib/hanamismith/templates/%project_name%/slices/health/actions/show.rb.erb
hanamismith-0.39.0 lib/hanamismith/templates/%project_name%/slices/health/actions/show.rb.erb
hanamismith-0.38.0 lib/hanamismith/templates/%project_name%/slices/health/actions/show.rb.erb
hanamismith-0.37.0 lib/hanamismith/templates/%project_name%/slices/health/actions/show.rb.erb