capistrano-multi 0.4.0 → 0.5.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 +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c35dc573e309de02bddf31d54235023a0637791e
|
4
|
+
data.tar.gz: 4b9d2d5500ad5f7fe5d6e3e730737579a675bdea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf11ae5552f7386f21818d047325e71623845731a4c810449e8410e5e82fbab0c466ab532ce7ecc24b60861f1c82931016ab0e42d1cd2dfea51418db1a3badc3
|
7
|
+
data.tar.gz: b14677be3f17e9b30f7c019114973255b70d38762e16576c8cbe499355195a6f1754b28033fcdb8996c6142a465933e65d3139b7a98b890accb288af46eb48b8
|
@@ -8,7 +8,7 @@ namespace :deploy do
|
|
8
8
|
desc 'Choose project to deploy'
|
9
9
|
task :set_project do
|
10
10
|
|
11
|
-
if fetch(:project).nil?
|
11
|
+
if fetch(:project).nil? && fetch(:projects)
|
12
12
|
|
13
13
|
found_projects = {}
|
14
14
|
nb_project = 1
|
@@ -60,7 +60,9 @@ namespace :deploy do
|
|
60
60
|
current_project = fetch(:project).to_s
|
61
61
|
|
62
62
|
paths = Array.new
|
63
|
-
|
63
|
+
if current_project
|
64
|
+
paths.push(File.path("#{release_path}/#{fetch(:config_dir)}/#{fetch(:stage)}/#{fetch(:projects_dir)}/#{current_project}"))
|
65
|
+
end
|
64
66
|
|
65
67
|
if fetch(:use_global_config)
|
66
68
|
paths.push(File.path("#{release_path}/#{fetch(:config_dir)}/#{fetch(:stage)}/#{fetch(:global_config_dir)}"))
|