capistrano 2.15.2 → 2.15.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03e47a951dfb7e0a72009c09238c2498cc221a6d
4
- data.tar.gz: 46b6357c6f0208a049fe2bc9ba825cab7134c278
3
+ metadata.gz: e3bffa7c743856eaf4e95146f1f113282e185874
4
+ data.tar.gz: 3108aa72d20619cf5edabf19f58647d25b9764cb
5
5
  SHA512:
6
- metadata.gz: 578d7bfbe16fa80099e19f5c4ea8630048e96f8c49ca4ed3fa2a06fe4398374a2ca67172b36fd399b04c4c11b3c4af134985514bc868eeb4ccc0b7f845adb1db
7
- data.tar.gz: e39d17fb1aad9bb1fec483cf952d4de98a426f1e5e5fe44f4c812bcbffd9c18c8dd3efa9a5ca38a4fb58f6400df4d2c08525a1f754ccd3febb2d44802df56617
6
+ metadata.gz: fad703fc0ab1689f650dc534f8a4636468464c99ec711431fede61a84dcd0c4aafd5014223a9bf7c5e9795972128b76e3857e22f4e219a489209372366047937
7
+ data.tar.gz: 36c81df6aa347c7747f726d1955f8ded3723a3e212b04b4a2e7ff266e73fd256d95a6210b0752c699bb7efc862c1ff814b6aaabea1c02d817e42cb97551844f8
data/CHANGELOG CHANGED
@@ -1,3 +1,13 @@
1
+ ## 2.15.3 / April 25 2012
2
+
3
+ * For deploy:cleanup, use try_sudo with rm command. (@joshstaiger)
4
+ * Restore maintenance.rhtml (@chulkilee)
5
+ * Fixes GH-434, If branches is an array of array, iterate them separately. (@gnufied)
6
+
7
+ A big "thank you" to the people who've pushed really amazing patches to the
8
+ 2.15.x branch so soon after it's release. 2.15.0 was just too huge to go out
9
+ bug free.
10
+
1
11
  ## 2.15.2 / April 24 2013
2
12
 
3
13
  * Fixed a bug with asset_paths (String vs. Array). (@joeycarmello)
@@ -178,7 +178,13 @@ module Capistrano
178
178
  logger.debug "executing #{branches.first}" unless options[:silent]
179
179
  else
180
180
  logger.debug "executing multiple commands in parallel"
181
- branches.each{ |branch| logger.trace "-> #{branch.to_s(true)}" }
181
+ branches.each {|maybe_branch|
182
+ if(maybe_branch.is_a?(Array))
183
+ maybe_branch.each {|branch| logger.trace "-> #{branch.to_s(true)}"}
184
+ else
185
+ logger.trace "-> #{maybe_branch.to_s(true)}"
186
+ end
187
+ }
182
188
  end
183
189
  else
184
190
  raise ArgumentError, "attempt to execute without specifying a command"
@@ -462,7 +462,7 @@ namespace :deploy do
462
462
  DESC
463
463
  task :cleanup, :except => { :no_release => true } do
464
464
  count = fetch(:keep_releases, 5).to_i
465
- try_sudo "ls -1dt #{releases_path}/* | tail -n +#{count + 1} | xargs rm -rf"
465
+ try_sudo "ls -1dt #{releases_path}/* | tail -n +#{count + 1} | #{try_sudo} xargs rm -rf"
466
466
  end
467
467
 
468
468
  desc <<-DESC
@@ -0,0 +1,53 @@
1
+
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
+
7
+ <head>
8
+ <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
9
+ <title>System down for maintenance</title>
10
+
11
+ <style type="text/css">
12
+ div.outer {
13
+ position: absolute;
14
+ left: 50%;
15
+ top: 50%;
16
+ width: 500px;
17
+ height: 300px;
18
+ margin-left: -260px;
19
+ margin-top: -150px;
20
+ }
21
+
22
+ .DialogBody {
23
+ margin: 0;
24
+ padding: 10px;
25
+ text-align: left;
26
+ border: 1px solid #ccc;
27
+ border-right: 1px solid #999;
28
+ border-bottom: 1px solid #999;
29
+ background-color: #fff;
30
+ }
31
+
32
+ body { background-color: #fff; }
33
+ </style>
34
+ </head>
35
+
36
+ <body>
37
+
38
+ <div class="outer">
39
+ <div class="DialogBody" style="text-align: center;">
40
+ <div style="text-align: center; width: 200px; margin: 0 auto;">
41
+ <p style="color: red; font-size: 16px; line-height: 20px;">
42
+ The system is down for <%= reason ? reason : "maintenance" %>
43
+ as of <%= Time.now.strftime("%H:%M %Z") %>.
44
+ </p>
45
+ <p style="color: #666;">
46
+ It'll be back <%= deadline ? deadline : "shortly" %>.
47
+ </p>
48
+ </div>
49
+ </div>
50
+ </div>
51
+
52
+ </body>
53
+ </html>
@@ -2,7 +2,7 @@ module Capistrano
2
2
  class Version
3
3
  MAJOR = 2
4
4
  MINOR = 15
5
- PATCH = 2
5
+ PATCH = 3
6
6
 
7
7
  def self.to_s
8
8
  "#{MAJOR}.#{MINOR}.#{PATCH}"
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.15.2
4
+ version: 2.15.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamis Buck
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-24 00:00:00.000000000 Z
12
+ date: 2013-04-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: highline
@@ -172,6 +172,7 @@ files:
172
172
  - lib/capistrano/recipes/deploy/strategy/remote_cache.rb
173
173
  - lib/capistrano/recipes/deploy/strategy/unshared_remote_cache.rb
174
174
  - lib/capistrano/recipes/standard.rb
175
+ - lib/capistrano/recipes/templates/maintenance.rhtml
175
176
  - lib/capistrano/role.rb
176
177
  - lib/capistrano/server_definition.rb
177
178
  - lib/capistrano/shell.rb