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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99d1b8a0022cc505aff2d3e488e727c627bbd4a5
|
4
|
+
data.tar.gz: 32a2f7b7642eb99c99c7399f9b50dede9ff8219a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abd2df3a18ff6fbf381bbb78f54bf8b7dc2d1afe9dc543425e2e9319d460a2c5c75b220b14a38d25c6dd2161b6c382d88367138d44fd4b7b93e9398e2dcabac8
|
7
|
+
data.tar.gz: 7404e047ad7856272c07414aceea18052c6fe67bfb9ea3988ff61fd2bbdb1a2045227d921171c9daffd62f0e497b8820918c569df39909da18688cdde3dfdd65
|
@@ -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}"
|
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}..."
|
93
|
+
debug "Uploading environment file #{relative_path}..."
|
89
94
|
upload! file, "#{shared_path}/#{relative_path}"
|
90
95
|
end
|
91
96
|
end
|
92
97
|
|
93
|
-
|
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}"
|
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}..."
|
111
|
+
debug "Uploading environment file #{relative_path}..."
|
103
112
|
upload! file, relative_path
|
104
113
|
end
|
105
114
|
end
|