whenever
whenever copied to clipboard
Missing "script/runner", undocumented dependency on rails?
When I try to use this gem in a plain old ruby project, runner tasks fail with:
bundler: command not found: script/runner
Install missing gem executables with `bundle install`
I know this is exists in rails projects, but the readme didn't make it seem like Rails was a hard requirement. I'm just trying to run a script on a schedule and this gem seemed perfect.
schedule.rb:
set :output, "./checker.log"
every 1.minutes do
runner "Checker.run"
end
I installed whenever using the instructions, added to my Gemfile and ran bundle exec wheneverize .
, then whenever --update-crontab