Skip to content

locaweb/heartcheck-cas

Repository files navigation

Heartcheck::Cas

Build Status Code Climate

A plugin to check CAS accessibility connection with heartcheck.

Installation

Add this line to your application's Gemfile:

gem 'heartcheck-cas'

And then execute:

$ bundle

Or install it yourself as:

$ gem install heartcheck-cas

Usage

You can check any CAS credentials that there's in your app.

Heartcheck.setup do |config|
  config.add :cas do |c|
    c.add_service({
        service: 'locaweb',
        username: 'username',
        password: 'password',
        server: 'https://path-to-cas-server/v1/tickets'
    })
  end
end

Check Heartcheck example here

Development setup using Docker

The Docker Hearthcheck-Cas provides a container with the current stable version of Ruby released and requires you to have these tools available in your local environment:

BootStrap Script to run the dockerized environment

./scripts/heartcheck-cas setup

Run the command ./scripts/heartcheck-cas -h to see available options.

Contributing

  1. Fork it
  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

License