phoseum-cli 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/phoseum-cli +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9800b3e97fad5a30ebc7a0fddcc17794ea22f28c3320d5a046313ca3eb1193cc
|
4
|
+
data.tar.gz: c3b421b14f8a1f88953d79e66c93bfc6c452bf87fc12ac83ee502e1d14c1deb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b56525518afece528044cc963d4d1c5b00d9cf9af241940968f0b9adc7b9974b499670e5810852e17000260500fb0770e3616fbe5f786ee62bff31fc5252eb9a
|
7
|
+
data.tar.gz: 490ea67df9103c47c3355d34e99142bea70e5415c070e1d182c777a4020ce8ea7de8d84faa8d691af50bf18a225ae6a0b3785d785c0a7fa7b30824eb9df32339
|
data/bin/phoseum-cli
CHANGED
@@ -19,6 +19,7 @@ options = option_parser(ARGV)
|
|
19
19
|
BOUNDARY = "AaB03x"
|
20
20
|
$QUIET = options[:quiet] ? true : false
|
21
21
|
$DEBUG = options[:verbose] ? true : false
|
22
|
+
$MULTI = options[:multiple] ? true : false
|
22
23
|
|
23
24
|
client_checks
|
24
25
|
|
@@ -66,6 +67,13 @@ def upload(album)
|
|
66
67
|
# human_name = check_string_sanity(filename)
|
67
68
|
human_name = filename
|
68
69
|
|
70
|
+
somefound = search_image(image.signature)
|
71
|
+
if somefound
|
72
|
+
print "Filename: #{human_name} was found repeated in Phoseum Server :: ".yellow
|
73
|
+
puts somefound.yellow
|
74
|
+
next if !$MULTI
|
75
|
+
end
|
76
|
+
|
69
77
|
uri = URI.parse($config['SERVERURL'])
|
70
78
|
post_body = []
|
71
79
|
post_body << "--#{BOUNDARY}\r\n"
|