SiteStatus
If your app depends on any external services or endpoints, you've probably needed to ensure those services were properly responding. site_status allows you to easily monitor the http status of your sites and endpoints with a single rake task.
Installation
Add this line to your application's Gemfile:
gem 'site_status'
And then execute:
$ bundle
Or install it yourself as:
$ gem install site_status
Usage
site_status is configured by default to look for a file name config/status_check.yml
in your project root.
# create this file, with your custom endpoints: ./config/status_check.yml
endpoints:
- 'http://www.b3ta.com/404'
- 'http://github.com/'
other_endpoints:
- 'http://canyoufixmycomputer.com/'
# create this file: ./lib/tasks/stat.rake
task :stat do
require 'site_status'
end
In your terminal session, assuming you've already configured your endpoints:
rake stat
Optional Configuration
If you prefer a different file path for your yml config, there is a simple congiuration switch:
# configuration must be run prior to `require 'site_status'`
SiteStatus.configure do |config|
config.yml_path = 'path/to/file.yml'
end
...
Limitations
!!! does not play well with ssl or unresolvable dns.
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 new Pull Request
Running the Tests
bundle exec rake
Credits
...
License
SiteStatus is released under the MIT License. See the bundled LICENSE file for details.