aptly_cli 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +5 -2
- data/lib/aptly_cli/version.rb +1 -1
- data/lib/aptly_repo.rb +5 -11
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmE5MmU2N2QxMzViNGU3ZDE3MzFmNjZkZWM0M2NmZmE2ZmRkODAxZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDkyODI1MjEwMmRlYjAxZmJkMTE3Y2U0N2M3MTY4NTNhZTU1ODZjZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjU4ZjVlZjdmNGNkZTI0NmZhODhlNWRkOTlhM2E0NjY4ZGVjMjBlNGFkMDc3
|
10
|
+
NjYzYTllNTU3ZGU3Njg3MzllNGJkMDE2ZDM0N2UxYWZjMDczYWM3MGEyYTg5
|
11
|
+
ZGJhYjg1NTExYzVlYTMzMWM1Y2U2OGM1Yzg2ZTA3NmFmMDY5ZTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTdmNmFiMzk4MTlkODNjNDJiYzUwYWIyMWZhM2M3OTU1MjFhNTcxNmJjNGYx
|
14
|
+
YTkwYzE3YzQ2OTQ4M2Y1NGNhOTRiYzgyYWMwMzAyMWRkYzI1NjIxNmVjOTEw
|
15
|
+
NGJhOTUzM2EzOGZjYWQ3ZWYzNTVhNTcyMTIwYjIxMmFlMmZlMjE=
|
data/README.md
CHANGED
@@ -153,7 +153,10 @@ might have to quote them to prevent the shell from trying to expand them.
|
|
153
153
|
|
154
154
|
-c, --config FILE
|
155
155
|
Path to YAML config file
|
156
|
-
|
156
|
+
|
157
|
+
--no-config
|
158
|
+
Don't try to read YAML config file
|
159
|
+
|
157
160
|
-s, --server SERVER
|
158
161
|
Host name or IP address of Aptly API server
|
159
162
|
|
@@ -199,7 +202,7 @@ Coverage report generated for Unit Tests to /Users/marca/dev/git-repos/aptly_cli
|
|
199
202
|
$ open coverage/index.html
|
200
203
|
```
|
201
204
|
|
202
|
-
<img width="
|
205
|
+
<img width="1203" alt="screen shot 2016-07-23 at 1 10 50 am" src="https://cloud.githubusercontent.com/assets/538171/17076963/ea5da4de-5074-11e6-812b-a25698e02607.png">
|
203
206
|
|
204
207
|
### Rubocop syntax and style check
|
205
208
|
|
data/lib/aptly_cli/version.rb
CHANGED
data/lib/aptly_repo.rb
CHANGED
@@ -97,26 +97,20 @@ module AptlyCli
|
|
97
97
|
case response.code
|
98
98
|
when 404
|
99
99
|
puts 'repository with such name does not exist'
|
100
|
+
return response
|
100
101
|
end
|
101
102
|
|
102
103
|
json_response = JSON.parse(response.body)
|
103
104
|
|
104
105
|
unless json_response['FailedFiles'].empty?
|
105
|
-
|
106
|
-
rescue StandardError => e
|
107
|
-
puts "Files that failed to upload... #{json_response['FailedFiles']}"
|
108
|
-
puts e
|
109
|
-
end
|
106
|
+
puts "Files that failed to upload... #{json_response['FailedFiles']}"
|
110
107
|
end
|
111
108
|
|
112
109
|
unless json_response['Report']['Warnings'].empty?
|
113
|
-
|
114
|
-
|
115
|
-
puts "File upload warning message[s]...\
|
116
|
-
#{json_response['Report']['Warnings']}"
|
117
|
-
puts e
|
118
|
-
end
|
110
|
+
puts "File upload warning message[s]...\
|
111
|
+
#{json_response['Report']['Warnings']}"
|
119
112
|
end
|
113
|
+
|
120
114
|
return response
|
121
115
|
end
|
122
116
|
end
|