Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aventinesolutions/daemon-kit-test
sandbox for building a Ruby daemon using the daemon-kit gem
https://github.com/aventinesolutions/daemon-kit-test
Last synced: 23 days ago
JSON representation
sandbox for building a Ruby daemon using the daemon-kit gem
- Host: GitHub
- URL: https://github.com/aventinesolutions/daemon-kit-test
- Owner: aventinesolutions
- Created: 2014-03-28T09:11:33.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-28T10:00:34.000Z (almost 11 years ago)
- Last Synced: 2023-03-26T16:00:08.046Z (almost 2 years ago)
- Language: Ruby
- Size: 129 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
daemon-kit README
================daemon-kit has generated a skeleton Ruby daemon for you to build on. Please read
through this file to ensure you get going quickly.Directories
===========bin/
daemon-kit-test - Stub executable to control your daemon withconfig/
Environment configuration fileslib/
Place for your librarieslibexec/
daemon-kit-test.rb - Your daemon codelog/
Log files based on the environment namespec/
rspec's hometasks/
Place for rake tasksvendor/
Place for unpacked gems and DaemonKittmp/
Scratch folderRake Tasks
==========Note that the Rakefile does not load the `config/environments.rb` file, so if you have
environment-specific tasks (such as tests), you will need to call rake with the environment:DAEMON_ENV=staging bundle exec rake -T
Logging
=======One of the biggest issues with writing daemons are getting insight into what your
daemons are doing. Logging with daemon-kit is simplified as DaemonKit creates log
files per environment in log.On all environments except production the log level is set to DEBUG, but you can
toggle the log level by sending the running daemon SIGUSR1 and SIGUSR2 signals.
SIGUSR1 will toggle between DEBUG and INFO levels, SIGUSR2 will blatantly set the
level to DEBUG.Bundler
=======daemon-kit uses bundler to ease the nightmare of dependency loading in Ruby
projects. daemon-kit and its generators all create/update the Gemfile in the
root of the daemon. You can satisfy the project's dependencies by running
`bundle install` from within the project root.For more information on bundler, please see http://github.com/carlhuda/bundler