jenkinsutil 1.0.70 → 1.0.71
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jenkins_util/argument_handler.rb +17 -6
- 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: 1d31f64dcf55754b0afeaa139069fbc7ba9111af
|
4
|
+
data.tar.gz: 7ddd78cd5c435cf89f442ac0496ee24eee809711
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fdb0f4b1dfdde6b82ec87d494865e1f3464e7633c8bc03fcef3a27a3a7982a13907c2863b5249673568e18238fe364c04a457c0a92693365709eb28f519f6a0
|
7
|
+
data.tar.gz: d9d266ed9a88f953ca528c89b06812eb90e45588a320afbe0fdfeedb7710273157b3cc20907b3bcf168f2bfd57d3f441cf70d3f06cdc62011ca5bcf65c24ee50
|
@@ -25,6 +25,13 @@ class ArgumentHandler
|
|
25
25
|
:verbose,
|
26
26
|
:version
|
27
27
|
|
28
|
+
def remove_quotes(file_path)
|
29
|
+
file_path = file_path.to_s
|
30
|
+
file_path[0] = '' if file_path.to_s.start_with?('\'', '"')
|
31
|
+
file_path[file_path.length - 1] = '' if file_path.to_s.end_with?('\'', '"')
|
32
|
+
file_path
|
33
|
+
end
|
34
|
+
|
28
35
|
# rubocop:disable Metrics/AbcSize
|
29
36
|
# rubocop:disable Metrics/MethodLength
|
30
37
|
def initialize
|
@@ -79,12 +86,14 @@ class ArgumentHandler
|
|
79
86
|
|
80
87
|
# dropbox_util
|
81
88
|
opts.on('-s', '--dropbox-sources s1,s2', Array, 'A set of paths/matchers for uploading to dropbox') do |sources|
|
82
|
-
|
89
|
+
sources.each do |source|
|
90
|
+
@dropbox_sources.push(remove_quotes(source))
|
91
|
+
end
|
83
92
|
end
|
84
93
|
|
85
94
|
# dropbox_util
|
86
95
|
opts.on('-d', '--dropbox-destination x', 'The dropbox destination usually /L4Builds/Path') do |destination|
|
87
|
-
@dropbox_destination = destination
|
96
|
+
@dropbox_destination = remove_quotes(destination)
|
88
97
|
end
|
89
98
|
|
90
99
|
# dropbox_util
|
@@ -94,7 +103,7 @@ class ArgumentHandler
|
|
94
103
|
|
95
104
|
# dropbox_util
|
96
105
|
opts.on('-r', '--dropbox-root x', 'The path to remove when uploading defaults to pwd') do |root|
|
97
|
-
@dropbox_root = root
|
106
|
+
@dropbox_root = remove_quotes(root)
|
98
107
|
end
|
99
108
|
|
100
109
|
# simulator_util
|
@@ -140,17 +149,19 @@ class ArgumentHandler
|
|
140
149
|
|
141
150
|
# zip_util
|
142
151
|
opts.on('--zip-compress s1,s2,s3', Array, 'Compress files into zip archive') do |sources|
|
143
|
-
|
152
|
+
sources.each do |source|
|
153
|
+
@zip_sources.push(remove_quotes(source))
|
154
|
+
end
|
144
155
|
end
|
145
156
|
|
146
157
|
opts.on('--zip-uncompress zip_archive', 'Uncompress zip archive') do |zip_archive|
|
147
|
-
@zip_archive = zip_archive
|
158
|
+
@zip_archive = remove_quotes(zip_archive)
|
148
159
|
end
|
149
160
|
|
150
161
|
opts.on('--zip-destination destination',
|
151
162
|
'The path to save a new zip archive for a --zip-compress',
|
152
163
|
'The path to a directory to uncompress a zip archive for --zip-uncompress') do |destination|
|
153
|
-
@zip_destination = destination
|
164
|
+
@zip_destination = remove_quotes(destination)
|
154
165
|
end
|
155
166
|
|
156
167
|
# logger_util
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jenkinsutil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.71
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brett McGinnis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: open4
|