Sha256: a1b5e758343d1f36a1bf9f490a6f2bc9b281c37baad00dc2390ea150c2c8bc6e
Contents?: true
Size: 485 Bytes
Versions: 12
Compression:
Stored size: 485 Bytes
Contents
require 'pushapp/tasks/base' module Pushapp module Tasks class WheneverUpdate < Base def run system "bundle exec whenever --update-crontab #{whenever_app} --set #{variables}" end private def whenever_app options[:whenever_app] || app_name_from_path end def rails_env env['RAILS_ENV'] end def variables "environment=#{rails_env}" end register_as :whenever_update end end end
Version data entries
12 entries across 12 versions & 1 rubygems