javan/whenever — Issue #198: Capistrano and whenever_environment problem
Author: sparrovv
Created: 2011-12-16 14:29:32+00:00
State: open

Hey,

I'm probably doing something wrong, but whenever doesn't run with environment option in capistrano.

This is part of my deploy.rb

```ruby
set :whenever_environment, defer { stage }
require "whenever/capistrano"
set :stages, %w(staging production)
```
but when I run cap staging whenever:update_crontab it doesn't add environment option.

```
* 15:00:36 == Currently executing `whenever:update_crontab'
* executing "cd /var/www/app/current && bundle exec whenever --update-crontab app"
servers: ["app.com"]
```