lib/capistrano/sidekiq/upstart.rb in capistrano-sidekiq-2.1.0 vs lib/capistrano/sidekiq/upstart.rb in capistrano-sidekiq-2.2.0
- old
+ new
@@ -1,13 +1,15 @@
+# frozen_string_literal: true
+
module Capistrano
class Sidekiq::Upstart < Capistrano::Plugin
include Sidekiq::Helpers
def set_defaults
- set_if_empty :sidekiq_service_unit_name, 'sidekiq'
+ set_if_empty :sidekiq_service_unit_name, 'sidekiq' # This will change in version 3.0.0 to {application}-sidekiq
end
def define_tasks
- eval_rakefile File.expand_path('../../tasks/upstart.rake', __FILE__)
+ eval_rakefile File.expand_path('../tasks/upstart.rake', __dir__)
end
end
end