capistrano-multi 0.5.0 → 1.0.0
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 +4 -4
- data/lib/capistrano/multi/version.rb +1 -1
- data/lib/capistrano/tasks/multi.rake +13 -22
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42f1cad5aa9cd2cad6504c14a3dbb9cf4d13fa53
|
4
|
+
data.tar.gz: 4c903ec3bdf95b0fc5441a52f76d3bba39403ff3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0612f0964fbbcad47ea1cdd162e4766c097df6a16a75dbf64412ffab60e23cabb41ef5f8d9e8ca185c2d6c75a475c8d993e061e188ad7600e36be70cc6bc35f7
|
7
|
+
data.tar.gz: c81b7beb3e801f2382e91671ee61e4aa2e8ee8e17525f97aec6ee1c1d7eef9f655a897013ac1c39925970f0e3f497090acb1a0cfc0ad9d1117f4f909ca032fdc
|
@@ -10,40 +10,31 @@ namespace :deploy do
|
|
10
10
|
|
11
11
|
if fetch(:project).nil? && fetch(:projects)
|
12
12
|
|
13
|
-
found_projects = {}
|
14
|
-
nb_project = 1
|
15
|
-
|
16
13
|
# We get all the multi in the directory
|
17
14
|
projects = fetch(:projects).sort.to_h
|
18
15
|
|
19
|
-
# For each projets, we set the needed configuration
|
20
|
-
projects.each do |current_project|
|
21
|
-
found_projects[nb_project] = current_project[0].to_s
|
22
|
-
nb_project += 1
|
23
|
-
end
|
24
|
-
|
25
16
|
# If project parameter is set, we don't need to ask for it
|
26
|
-
if ENV['project']
|
27
|
-
set :
|
17
|
+
if ENV['project'] && !ENV['project'].nil? && projects.key?(ENV['project'].to_sym)
|
18
|
+
set :project_name, ENV['project']
|
28
19
|
else
|
29
20
|
|
30
|
-
puts '
|
31
|
-
puts '
|
32
|
-
puts '
|
33
|
-
|
34
|
-
puts
|
21
|
+
puts '====================='
|
22
|
+
puts 'PROJECT'
|
23
|
+
puts '====================='
|
24
|
+
projects.each do |project|
|
25
|
+
puts project[0].to_s
|
35
26
|
end
|
36
27
|
|
37
28
|
begin
|
38
|
-
ask(:
|
39
|
-
fetch(:
|
40
|
-
|
41
|
-
|
42
|
-
|
29
|
+
ask(:project_name, nil)
|
30
|
+
fetch(:project_name)
|
31
|
+
|
32
|
+
end while fetch(:project_name).nil? ||
|
33
|
+
!projects.key?(fetch(:project_name).to_sym)
|
43
34
|
|
44
35
|
end
|
45
36
|
|
46
|
-
set :project,
|
37
|
+
set :project, fetch(:project_name)
|
47
38
|
|
48
39
|
if fetch(:use_custom_deploy_to) && fetch(:deploy_to)
|
49
40
|
app_folder = fetch(:application).tr('-', '/')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-multi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guillaume GIORDANA
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|