Class: Blazing::Recipe::UpdateCrontab

Inherits:
Blazing::Recipe
  • Object
show all
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(target_options = {})
  super target_options
 
  return if options[:targets] && !Array(options[:targets]).include?(target_options[:target_name])
  info "updating crontab"
  system "bundle exec whenever --update-crontab #{application} --set #{variables}"
end