lib/capper.rb in capper-1.0.0 vs lib/capper.rb in capper-1.0.1
- old
+ new
@@ -8,14 +8,13 @@
include Capper::Utils::Multistage
require 'capper/utils/monit'
include Capper::Utils::Monit
-# XXX: remove capture from kernel in case activesupport has been loaded. sigh.
-module ::Kernel
- begin
- remove_method :capture
- rescue NameError
+# see https://github.com/capistrano/capistrano/issues/168
+Capistrano::Configuration::Namespaces::Namespace.class_eval do
+ def capture(*args)
+ parent.capture *args
end
end
# make sure capper recipes can be found by load() too
Capistrano::Configuration.instance(true).load do