capistrano-psw 1.0.0.pre22 → 1.0.0.pre23

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 999e9ae51335b17cb654243ca149be8f440b0705
4
- data.tar.gz: 33f0d884b2cf9bde5a0f11745e69110176e681d3
3
+ metadata.gz: 99d1b8a0022cc505aff2d3e488e727c627bbd4a5
4
+ data.tar.gz: 32a2f7b7642eb99c99c7399f9b50dede9ff8219a
5
5
  SHA512:
6
- metadata.gz: e04a50f733cdf9e4083936f98b016d6761d6a76bb5130dca5e2a16e1f22eae0b882c85fc2e67dd9ff1dd586730711d92e8ab75a91506e028b8e1d13234d9fb39
7
- data.tar.gz: 04acbeb3d0b3920770dab2af7bdbf8bbf59b838776049656f7c6ed1fd8f08017c97ca1197d62b4fc338dcceed81e6e085f3dd49ca785878a10add24449ded413
6
+ metadata.gz: abd2df3a18ff6fbf381bbb78f54bf8b7dc2d1afe9dc543425e2e9319d460a2c5c75b220b14a38d25c6dd2161b6c382d88367138d44fd4b7b93e9398e2dcabac8
7
+ data.tar.gz: 7404e047ad7856272c07414aceea18052c6fe67bfb9ea3988ff61fd2bbdb1a2045227d921171c9daffd62f0e497b8820918c569df39909da18688cdde3dfdd65
@@ -10,6 +10,6 @@
10
10
 
11
11
  module Capistrano
12
12
  module Psw
13
- VERSION = "1.0.0.pre22"
13
+ VERSION = "1.0.0.pre23"
14
14
  end
15
15
  end
@@ -72,34 +72,43 @@ namespace :psw_peppr_app_deploy do
72
72
  local_shared_files_path = PepprAppDeployFileUtils::Local::get_deployment_shared_files_dir
73
73
 
74
74
  if File.exist? local_shared_files_path
75
- info "Uploading environment files..."
75
+ info "Uploading environment files from #{local_shared_files_path}..."
76
76
  files = Find.find(local_shared_files_path)
77
77
 
78
78
  absolute_path_files, shared_files = files.partition { |f| f.start_with? "#{local_shared_files_path}/.absolute_paths" }
79
79
 
80
+ if shared_files.nil?
81
+ info "Uploading #{shared_files.size} relative shared directory environment files..."
82
+ else
83
+ info "There are no relative shared directory environment files to upload."
84
+ end
80
85
  shared_files.each do |file|
81
86
  relative_path = file.gsub("#{local_shared_files_path}/", '')
82
87
 
83
- debug "Inspecting: #{relative_path}" if fetch(:psw_peppr_app_deploy_debug)
88
+ debug "Inspecting: #{relative_path}"
84
89
 
85
90
  if File.directory?(file) && relative_path.strip != ''
86
91
  execute :mkdir, '-p', "#{shared_path}/#{relative_path}"
87
92
  elsif relative_path.gsub(/\s+/, '') != '' and relative_path != '.' and relative_path != '..'
88
- debug "Uploading environment file #{relative_path}..." if fetch(:psw_peppr_app_deploy_debug)
93
+ debug "Uploading environment file #{relative_path}..."
89
94
  upload! file, "#{shared_path}/#{relative_path}"
90
95
  end
91
96
  end
92
97
 
93
- info 'Uploading absolute path environment files...'
98
+ if absolute_path_files.nil?
99
+ info "Uploading #{shared_files.size} absolute path environment files..."
100
+ else
101
+ info "There are no absolute path environment files to upload."
102
+ end
94
103
  absolute_path_files.each do |file|
95
104
  relative_path = file.gsub("#{local_shared_files_path}/.absolute_paths", '')
96
105
 
97
- debug "Inspecting: #{relative_path}" if fetch(:psw_peppr_app_deploy_debug)
106
+ debug "Inspecting: #{relative_path}"
98
107
 
99
108
  if File.directory?(file) && relative_path.strip != ''
100
109
  execute :mkdir, '-p', relative_path
101
110
  elsif relative_path.gsub(/\s+/, '') != '' and relative_path != '.' and relative_path != '..'
102
- debug "Uploading environment file #{relative_path}..." if fetch(:psw_peppr_app_deploy_debug)
111
+ debug "Uploading environment file #{relative_path}..."
103
112
  upload! file, relative_path
104
113
  end
105
114
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-psw
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre22
4
+ version: 1.0.0.pre23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lexmark International Technology S.A