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:
parent
c11cfecadc
commit
bd6ff00fa3
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
require 'capistrano/fix_rake_deprecated_dsl'
|
||||
|
||||
require 'capistrano/configuration'
|
||||
require 'capistrano/extensions'
|
||||
require 'capistrano/ext/string'
|
||||
|
|
8
lib/capistrano/fix_rake_deprecated_dsl.rb
Normal file
8
lib/capistrano/fix_rake_deprecated_dsl.rb
Normal 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
|
Loading…
Reference in a new issue