Heartcheck::Cas
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
- Fork it
- Create your feature branch ( git checkout -b my-new-feature )
- Commit your changes ( git commit -am 'Add some feature' )
- Push to the branch ( git push origin my-new-feature )
- Create a new Pull Request