Commit 92635405 by Karl Kloppenborg

removed sidekiq task bug

and updated error message.
parent b2a60259
require 'capistrano/sneakers/version' require 'capistrano/sneakers/version'
if Gem::Specification.find_by_name('capistrano').version >= Gem::Version.new('3.0.0') cap_version = Gem::Specification.find_by_name('capistrano').version
load File.expand_path('../tasks/sidekiq.cap', __FILE__) if cap_version >= Gem::Version.new('3.0.0')
#
# Load Tasks from sneakers "cap" file
#
load File.expand_path('../tasks/sneakers.cap', __FILE__)
else else
raise Gem::LoadError, 'We are Sorry, this gem only for Capistrano3, please install Capistrano3 first.' raise Gem::LoadError, "Capistrano-Sneakers requires capistrano version 3.0.0 or greater, version detected: #{cap_version}"
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment