public
Description: Remote multi-server automation tool. This repository is no longer being actively maintained. Please ask on the mailing list to find someone who has a well-maintained fork. Thanks!
Homepage: http://www.capify.org
Clone URL: git://github.com/jamis/capistrano.git
remove a bit of pre-2.0 cruft
Jamis Buck (author)
Tue Jun 03 07:41:01 -0700 2008
commit  268648a85ce2dce291c83fe1e8269d95d88231d1
tree    ccfa5d8a832357b2e135d76b1a385d890c1c1450
parent  d48ed9a9860980f924a392e3ba7bbe919253602c
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
...
1
2
 
 
 
 
 
 
 
 
 
 
3
4
5
6
7
 
 
 
8
9
0
@@ -1,22 +1,9 @@
0
 module Capistrano
0
   module Version #:nodoc:
0
-    # A method for comparing versions of required modules. It expects two
0
-    # arrays of integers as parameters, the first being the minimum version
0
-    # required, and the second being the actual version available. It returns
0
-    # true if the actual version is at least equal to the required version.
0
-    def self.check(required, actual) #:nodoc:
0
-      required = required.map { |v| "%06d" % v }.join(".")
0
-      actual   = actual.map { |v| "%06d" % v }.join(".")
0
-      return actual >= required
0
-    end
0
-
0
     MAJOR = 2
0
     MINOR = 3
0
     TINY  = 0
0
 
0
     STRING = [MAJOR, MINOR, TINY].join(".")
0
-    
0
-    SSH_REQUIRED = [1,0,10]
0
-    SFTP_REQUIRED = [1,1,0]
0
   end
0
 end

Comments

snowblink Thu Jan 22 04:18:12 -0800 2009

I actually found this method useful and put into my recipes a check to see if it was necessary to add default_run_options[:pty] = true; if the version was higher than 2.1.0.