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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b728bcd28ce0fdff9094a779353bc61f25f05914
4
- data.tar.gz: 76872b5b569b2fa86abe49e1593112e159c800d9
3
+ metadata.gz: c35dc573e309de02bddf31d54235023a0637791e
4
+ data.tar.gz: 4b9d2d5500ad5f7fe5d6e3e730737579a675bdea
5
5
  SHA512:
6
- metadata.gz: 4079f1d39a5988ba2ff83e7fff6a9562c1ee0a1b5de08b8c85d83e098f53c8baa20acfbd58d6ca8e6565acbc2f39d8160fbdddc1b724fc40578e8f104e4b1233
7
- data.tar.gz: 5b9c4bda72bb58aba080d933a055d017bd17dc9de6ea8cfb0b74a963ec8f4a948f12f3dc7d1fd60ef667a8680f8664a28cdffa82aeb2da4d2b78c036066ca238
6
+ metadata.gz: cf11ae5552f7386f21818d047325e71623845731a4c810449e8410e5e82fbab0c466ab532ce7ecc24b60861f1c82931016ab0e42d1cd2dfea51418db1a3badc3
7
+ data.tar.gz: b14677be3f17e9b30f7c019114973255b70d38762e16576c8cbe499355195a6f1754b28033fcdb8996c6142a465933e65d3139b7a98b890accb288af46eb48b8
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Multi
3
- VERSION = '0.4.0'
3
+ VERSION = '0.5.0'
4
4
  end
5
5
  end
@@ -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
- paths.push(File.path("#{release_path}/#{fetch(:config_dir)}/#{fetch(:stage)}/#{fetch(:projects_dir)}/#{current_project}"))
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)}"))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-multi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume GIORDANA