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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2c4cb6669d1db7850e5ba64bc634647bb765bc0
4
- data.tar.gz: 31440ed2d663174491b54a472fb411c1847b4d5e
3
+ metadata.gz: 077100c0a4afb848335e8b41072f7e793257f09c
4
+ data.tar.gz: a114a6624b6483aa7b88e03fd666903877647542
5
5
  SHA512:
6
- metadata.gz: 928a48def00d488f9f1910fbddf75596f21947968bb615922e7ba2c7fb736d726902158ff3b155394c41c22e4a331ab567a5d9cacd84760a8b71af1261cc457c
7
- data.tar.gz: 8220bfd832e248a80cb74a8ab9283fbc7cb1d7328867ba21213504bfadf6457a1db2a4cf606b72ac5a37148664a15a00f23f6d1cf0cc777ab5f330d0b1be7e54
6
+ metadata.gz: 78244d1380c741b71831a976b4f427106a2c9cbf0d48987b6667116431c22e6f5ce49c058eb913c0be14498e858aac309c0742235f2e21bc9f720ba0633b1b6f
7
+ data.tar.gz: 12bac6aadc253a13dc52c9bab947452facbb46a4cf5769422333cdc5f9c92005f9fe87c55d2889745f6d36364f8f58f32b4ba989b4c101d85bb8f1043b32bf9d
@@ -14,9 +14,7 @@ module Chihuahua
14
14
  end
15
15
 
16
16
  def apply_result_display(res)
17
- result = res.last
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
- apply_result_display(res)
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
- apply_result_display(res)
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)
@@ -1,3 +1,3 @@
1
1
  module Chihuahua
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
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.9
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-20 00:00:00.000000000 Z
11
+ date: 2017-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler