Permalink
Browse files

improved checking if capistrano was loaded, fix #30

  • Loading branch information...
1 parent 83e83ca commit 301867dbbfd45f1bf124adfaa0abf6a0c17d71bf @mpapis mpapis committed Feb 11, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/rvm/capistrano.rb
  2. +1 −1 lib/rvm/capistrano/version.rb
View
@@ -280,7 +280,7 @@ def rvm_task(name,&block)
end
end
- end if const_defined? :Configuration
+ end if Capistrano.const_defined? :Configuration and Capistrano::Configuration.methods.map(&:to_sym).include? :instance
end
# E.g, to use ree and rails 3:
@@ -1,5 +1,5 @@
module RVM
class Capistrano
- VERSION="1.3.0.rc6"
+ VERSION="1.3.0.rc7"
end
end

0 comments on commit 301867d

Please sign in to comment.