chihuahua 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chihuahua/update.rb +5 -5
- data/lib/chihuahua/version.rb +1 -1
- 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: 077100c0a4afb848335e8b41072f7e793257f09c
|
4
|
+
data.tar.gz: a114a6624b6483aa7b88e03fd666903877647542
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78244d1380c741b71831a976b4f427106a2c9cbf0d48987b6667116431c22e6f5ce49c058eb913c0be14498e858aac309c0742235f2e21bc9f720ba0633b1b6f
|
7
|
+
data.tar.gz: 12bac6aadc253a13dc52c9bab947452facbb46a4cf5769422333cdc5f9c92005f9fe87c55d2889745f6d36364f8f58f32b4ba989b4c101d85bb8f1043b32bf9d
|
data/lib/chihuahua/update.rb
CHANGED
@@ -14,9 +14,7 @@ module Chihuahua
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def apply_result_display(res)
|
17
|
-
|
18
|
-
puts hl.color(result['name'], :light_cyan) + ' applying...' unless result.nil?
|
19
|
-
puts 'applying...' if result.nil?
|
17
|
+
puts hl.color(res['name'], :light_cyan) + ' applying...'
|
20
18
|
end
|
21
19
|
|
22
20
|
def update_monitor(data)
|
@@ -26,7 +24,8 @@ module Chihuahua
|
|
26
24
|
rescue => e
|
27
25
|
puts e
|
28
26
|
end
|
29
|
-
|
27
|
+
raise res.last unless res.first == '200'
|
28
|
+
apply_result_display(res.last)
|
30
29
|
end
|
31
30
|
|
32
31
|
def create_monitor(data)
|
@@ -36,7 +35,8 @@ module Chihuahua
|
|
36
35
|
rescue => e
|
37
36
|
puts e
|
38
37
|
end
|
39
|
-
|
38
|
+
raise res.last unless res.first == '200'
|
39
|
+
apply_result_display(res.last)
|
40
40
|
end
|
41
41
|
|
42
42
|
def update_monitors(dry_run)
|
data/lib/chihuahua/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chihuahua
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- inokappa
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|