capistrano 2.5.13 → 2.5.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,16 @@
1
+ == 2.5.14 / 18 January 2010
2
+
3
+ Fixes a low-value bug, thanks to Chris G for the well submitted patch:
4
+
5
+ * #139 - Improves consistency of variable lookup, scm variables with a local_ prefix will be honoured with priority locally (Chris Griego)
6
+
7
+ == 2.5.13 / 6 January 2010
8
+
9
+ * Small maintenance release:
10
+
11
+ * #118 - Modified CLI test to not load user or system configuration file (Emily Price)
12
+ * #88 - Re-fixed a problem here, massive apologies to all concerned. (Hangover from 2.5.12)
13
+
1
14
  == 2.5.12 / 5 January 2010
2
15
 
3
16
  * Tweak the directory version listing (caused a lot of problems, please upgrade immediately)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.5.13
1
+ 2.5.14
@@ -120,11 +120,11 @@ module Capistrano
120
120
  # default, Git's reference of HEAD (the latest changeset in the default
121
121
  # branch, usually called "master").
122
122
  def head
123
- configuration[:branch] || 'HEAD'
123
+ variable(:branch) || 'HEAD'
124
124
  end
125
125
 
126
126
  def origin
127
- configuration[:remote] || 'origin'
127
+ variable(:remote) || 'origin'
128
128
  end
129
129
 
130
130
  # Performs a clone on the remote machine, then checkout on the branch
@@ -135,21 +135,21 @@ module Capistrano
135
135
 
136
136
  args = []
137
137
  args << "-o #{remote}" unless remote == 'origin'
138
- if depth = configuration[:git_shallow_clone]
138
+ if depth = variable(:git_shallow_clone)
139
139
  args << "--depth #{depth}"
140
140
  end
141
141
 
142
142
  execute = []
143
143
  if args.empty?
144
- execute << "#{git} clone #{verbose} #{configuration[:repository]} #{destination}"
144
+ execute << "#{git} clone #{verbose} #{variable(:repository)} #{destination}"
145
145
  else
146
- execute << "#{git} clone #{verbose} #{args.join(' ')} #{configuration[:repository]} #{destination}"
146
+ execute << "#{git} clone #{verbose} #{args.join(' ')} #{variable(:repository)} #{destination}"
147
147
  end
148
148
 
149
149
  # checkout into a local branch rather than a detached HEAD
150
150
  execute << "cd #{destination} && #{git} checkout #{verbose} -b deploy #{revision}"
151
151
 
152
- if configuration[:git_enable_submodules]
152
+ if variable(:git_enable_submodules)
153
153
  execute << "#{git} submodule #{verbose} init"
154
154
  execute << "#{git} submodule #{verbose} sync"
155
155
  execute << "#{git} submodule #{verbose} update"
@@ -180,14 +180,14 @@ module Capistrano
180
180
  # changes between calls, but as long as the repositories are all
181
181
  # based from each other it should still work fine.
182
182
  if remote != 'origin'
183
- execute << "#{git} config remote.#{remote}.url #{configuration[:repository]}"
183
+ execute << "#{git} config remote.#{remote}.url #{variable(:repository)}"
184
184
  execute << "#{git} config remote.#{remote}.fetch +refs/heads/*:refs/remotes/#{remote}/*"
185
185
  end
186
186
 
187
187
  # since we're in a local branch already, just reset to specified revision rather than merge
188
188
  execute << "#{git} fetch #{verbose} #{remote} && #{git} reset #{verbose} --hard #{revision}"
189
189
 
190
- if configuration[:git_enable_submodules]
190
+ if variable(:git_enable_submodules)
191
191
  execute << "#{git} submodule #{verbose} init"
192
192
  execute << "for mod in `#{git} submodule status | awk '{ print $2 }'`; do #{git} config -f .git/config submodule.${mod}.url `#{git} config -f .gitmodules --get submodule.${mod}.url` && echo Synced $mod; done"
193
193
  execute << "#{git} submodule #{verbose} sync"
@@ -234,7 +234,7 @@ module Capistrano
234
234
 
235
235
  def command
236
236
  # For backwards compatibility with 1.x version of this module
237
- configuration[:git] || super
237
+ variable(:git) || super
238
238
  end
239
239
 
240
240
  # Determines what the response should be for a particular bit of text
@@ -246,7 +246,7 @@ module Capistrano
246
246
  case text
247
247
  when /\bpassword.*:/i
248
248
  # git is prompting for a password
249
- unless pass = configuration[:scm_password]
249
+ unless pass = variable(:scm_password)
250
250
  pass = Capistrano::CLI.password_prompt
251
251
  end
252
252
  "#{pass}\n"
@@ -255,7 +255,7 @@ module Capistrano
255
255
  "yes\n"
256
256
  when /passphrase/i
257
257
  # git is asking for the passphrase for the user's key
258
- unless pass = configuration[:scm_passphrase]
258
+ unless pass = variable(:scm_passphrase)
259
259
  pass = Capistrano::CLI.password_prompt
260
260
  end
261
261
  "#{pass}\n"
@@ -18,7 +18,7 @@ module Capistrano
18
18
  # For mercurial HEAD == tip except that it bases this assumption on what
19
19
  # tip is in the current repository (so push before you deploy)
20
20
  def head
21
- configuration[:branch] || "tip"
21
+ variable(:branch) || "tip"
22
22
  end
23
23
 
24
24
  # Clone the repository and update to the specified changeset.
@@ -6,7 +6,7 @@ module Capistrano
6
6
  class Version < Net::SSH::Version
7
7
  MAJOR = 2
8
8
  MINOR = 5
9
- TINY = 13
9
+ TINY = 14
10
10
 
11
11
  # The current version, as a Version instance
12
12
  CURRENT = new(MAJOR, MINOR, TINY)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.13
4
+ version: 2.5.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamis Buck
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2010-01-06 00:00:00 +00:00
13
+ date: 2010-01-19 00:00:00 +01:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency