public
Description: Remote multi-server automation tool
Homepage: http://www.capify.org
Clone URL: git://github.com/jamis/capistrano.git
Search Repo:
deprecated uppercase variable names


git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@6217 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
jamis (author)
Sat Feb 24 12:06:45 -0800 2007
commit  20b9a45c85c47581c67fb425b048071f70ec41b4
tree    61cf466cc42696811275b867a4b7cf891de3a67d
parent  13b3ad6d62ce68d315c0e40d066dcbbdd563104f
...
1
2
 
 
3
4
5
...
1
2
3
4
5
6
7
0
@@ -1,5 +1,7 @@
0
 *SVN*
0
 
0
+* Deprecated upper-cased variables [Jamis Buck]
0
+
0
 * Make sure Actor#get does not close the SFTP channel (so subsequent SFTP operations work) [Dov Murik]
0
 
0
 * Add :env option to 'run' (and friends) so that you can specify environment variables to be injected into the new process' environment [Mathieu Lajugie]
...
68
69
70
 
71
72
73
...
68
69
70
71
72
73
74
0
@@ -68,6 +68,7 @@ module Capistrano
0
       # actor. This is to allow uppercase "variables" to be set and referenced
0
       # in recipes.
0
       if variable.to_s[0].between?(?A, ?Z)
0
+ warn "[DEPRECATION] You setting an upper-cased variable, `#{variable}'. Variables should start with a lower-case letter. Support for upper-cased variables will be removed in version 2."
0
         klass = @actor.metaclass
0
         klass.send(:remove_const, variable) if klass.const_defined?(variable)
0
         klass.const_set(variable, value)

Comments

    No one has commented yet.