Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Report values to Sheriff and run plugins from Sheriff
Ruby

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
_site @ 86740a1
bin
lib
spec
.gitmodules
Gemfile
Gemfile.lock
Rakefile
Readme.md
VERSION
deputy.gemspec

Readme.md

Report values to Sheriff or run plugins from sheriff.

Install

sudo gem install deputy

Configuration

Put into ~/.deputy.yml or /etc/deputy.yml

sheriff_url: http://sheriff.mydomain.com
# overwrite defaults if needed
max_random_start_delay: 30
timeout: 10
silent_on_errors: true

Basic auth login can be added to the url:

sheriff_url: http://username:password@sheriff.mydomain.com

Disable Deputy for local use:

disabled: true

Add deputy to cron with deputy --install-cron (logs to /tmp/deputy.log)

Usage

Report something

deputy Cronjob.ran
deputy Cronjob.users_found 123
dump_database.sh 2>&1 ; deputy Cron.database_dumped $?

Run plugins by hand for debugging

deputy --run-plugins --no-wait
Something went wrong with that request. Please try again.