class Pushapp::Tasks::WheneverUpdate
Public Instance Methods
run()
click to toggle source
# File lib/pushapp/tasks/whenever_update.rb, line 7 def run system "bundle exec whenever --update-crontab #{whenever_app} --set #{variables}" end
Private Instance Methods
rails_env()
click to toggle source
# File lib/pushapp/tasks/whenever_update.rb, line 17 def rails_env env['RAILS_ENV'] end
variables()
click to toggle source
# File lib/pushapp/tasks/whenever_update.rb, line 21 def variables "environment=#{rails_env}" end
whenever_app()
click to toggle source
# File lib/pushapp/tasks/whenever_update.rb, line 13 def whenever_app options[:whenever_app] || app_name_from_path end