1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Fix compatibility with Rake 0.9.x.

This method is incredibly unsatisfactory, please see:

 * https://github.com/jimweirich/rake/issues/81

for more discussion about this issue.
This commit is contained in:
Lee Hambley 2012-02-19 18:17:17 +01:00
parent c11cfecadc
commit bd6ff00fa3
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,5 @@
require 'capistrano/fix_rake_deprecated_dsl'
require 'capistrano/configuration'
require 'capistrano/extensions'
require 'capistrano/ext/string'

View file

@ -0,0 +1,8 @@
#
# See https://github.com/jimweirich/rake/issues/81
#
if defined?(Rake::DeprecatedObjectDSL)
Rake::DeprecatedObjectDSL.private_instance_methods.each do |m|
Rake::DeprecatedObjectDSL.send("undef_method", m)
end
end