geordi 0.14.5 → 0.14.6
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/cap-all +15 -3
- data/lib/geordi/version.rb +1 -1
- metadata +7 -6
data/bin/cap-all
CHANGED
@@ -2,16 +2,28 @@
|
|
2
2
|
|
3
3
|
require 'fileutils'
|
4
4
|
|
5
|
-
Dir["config/deploy/*.rb"].map { |f| File.basename(f, ".rb") }.each do |stage|
|
6
5
|
|
7
|
-
|
6
|
+
targets = Dir["config/deploy/*.rb"].map { |f| File.basename(f, ".rb") }
|
7
|
+
|
8
|
+
if targets.empty?
|
9
|
+
targets = [nil]
|
10
|
+
end
|
11
|
+
|
12
|
+
targets.each do |stage|
|
13
|
+
|
14
|
+
puts "Deploying to #{stage ? stage : 'default target'}"
|
8
15
|
puts "*" * 80
|
9
16
|
|
10
|
-
|
17
|
+
if stage
|
18
|
+
exit_code = system("bundle", "exec", "cap", stage, *ARGV)
|
19
|
+
else
|
20
|
+
exit_code = system("bundle", "exec", "cap", *ARGV)
|
21
|
+
end
|
11
22
|
unless exit_code
|
12
23
|
puts "*" * 80
|
13
24
|
puts "Capistrano failed. Have a look!"
|
14
25
|
exit(1)
|
15
26
|
end
|
16
27
|
|
28
|
+
puts
|
17
29
|
end
|
data/lib/geordi/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geordi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 43
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 14
|
9
|
-
-
|
10
|
-
version: 0.14.
|
9
|
+
- 6
|
10
|
+
version: 0.14.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Henning Koch
|
@@ -15,7 +15,8 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-01-18 00:00:00
|
18
|
+
date: 2013-01-18 00:00:00 +01:00
|
19
|
+
default_executable:
|
19
20
|
dependencies: []
|
20
21
|
|
21
22
|
description: Collection of command line tools we use in our daily work with Ruby, Rails and Linux at makandra.
|
@@ -87,6 +88,7 @@ files:
|
|
87
88
|
- lib/geordi/gitpt.rb
|
88
89
|
- lib/geordi/setup_firefox_for_selenium.rb
|
89
90
|
- lib/geordi/version.rb
|
91
|
+
has_rdoc: true
|
90
92
|
homepage: http://makandra.com
|
91
93
|
licenses: []
|
92
94
|
|
@@ -116,10 +118,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
118
|
requirements: []
|
117
119
|
|
118
120
|
rubyforge_project: geordi
|
119
|
-
rubygems_version: 1.
|
121
|
+
rubygems_version: 1.3.9.5
|
120
122
|
signing_key:
|
121
123
|
specification_version: 3
|
122
124
|
summary: Collection of command line tools we use in our daily work with Ruby, Rails and Linux at makandra.
|
123
125
|
test_files: []
|
124
126
|
|
125
|
-
has_rdoc:
|