lib/capper.rb in capper-0.9.3 vs lib/capper.rb in capper-0.9.4
- old
+ new
@@ -8,9 +8,17 @@
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
+ end
+end
+
# make sure capper recipes can be found by load() too
Capistrano::Configuration.instance(true).load do
load_paths << File.expand_path(File.dirname(__FILE__))
load 'capper/base'
end