Sha256: 29eb987234adb29110dc4af1c0ab55e42736fc385579fc606534d5332a552cc9

Contents?: true

Size: 1.22 KB

Versions: 1

Compression:

Stored size: 1.22 KB

Contents

[![Build Status](https://travis-ci.org/elitau/rack-skylight-endpoint.svg)](https://travis-ci.org/elitau/rack-skylight-endpoint)

# Rack::SkylightEndpoint

Rack middleware to set custom [skylight.io](http://skylight.io) endpoints for specific paths.
I'm using it to ignore Rack based health check responses in skylight.
It is based on teodor-pripoae's [suggestion](https://github.com/skylightio/skylight-ruby/issues/19).

WARNING: Uses skylights private API.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'rack-skylight-endpoint'
```

And then execute:

    $ bundle

## Customization

```ruby
use Rack::SkylightEndpoint, path: '/healthcheck', endpoint: 'healthcheck'
```

Add this to your skylight config:

```
ignored_endpoints:
  - healthcheck
```

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.


## Contributing

1. Fork it ( https://github.com/elitau/rack-skylight-endpoint/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-skylight-endpoint-1.0.1 README.md