Class: Blazing::Recipe::UpdateCrontab
- Inherits:
-
Blazing::Recipe
- Object
- Blazing::Recipe
- Blazing::Recipe::UpdateCrontab
- Defined in:
- lib/blazing-whenever/recipes/update_crontab.rb
Instance Method Summary collapse
Instance Method Details
#run(target_options = {}) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/blazing-whenever/recipes/update_crontab.rb', line 5 def run( = {}) super return if [:targets] && !Array([:targets]).include?([:target_name]) info "updating crontab" system "bundle exec whenever --update-crontab #{application} --set #{variables}" end |