wafoo 0.0.2 → 0.0.3

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
  SHA256:
3
- metadata.gz: 97e1e0c5dc2c41f2401ee42d05cc463930528ef6fe5aaf2319784b1c1ce80408
4
- data.tar.gz: dfcfaccc4bdc7a0bcab036c8fb42ef0cf186f02ca3194b3a2bd8819ce1728da7
3
+ metadata.gz: 389e1e059550b65a7de49ce7942d5602b8273fbb0e38c085b32103a553f8ea53
4
+ data.tar.gz: 265b3fdcc17f39d2284dd3140fc97da336d90350d44127a6b28761ff803fc54b
5
5
  SHA512:
6
- metadata.gz: 5206bc7e5396b5b11fb2561c6167142d23e7fc229b82afeb8dd2027bc9a51fd2b6ec613d4b2f663728c33f1db917d9c8c010055906b30efe13b65579e8647aeb
7
- data.tar.gz: 11e38af3dfa03a5c4da6785d7928560b1a3d719e952d7b35a584fa386e9c0e4d5449ffcad97122d0c536b23be086767cfcd3a28b88995a33f89c1bf6bc4a0a5b
6
+ metadata.gz: 8cfae73a5c1b9f3851a73c495df0a1fd7d498c368ff0ce39fe01ea826d60fffc5c45ff65d109acc91934cd275f2083393c43bcc6bc063c45d9c31e72e80ee3e0
7
+ data.tar.gz: 308255e4c605c56fa438f52329130f25f8bac0b73c464c43b6b5bd4c9a603fa8d5751bfeeb314446cbfd9ffff03e218db30fe0e834d9786c6eea801cb9d38efd
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## これなに
4
4
 
5
- * AWS WAF の IPSets をいじるコマンドラインツール
5
+ * AWS WAF の IP Sets に登録されている IP リストを操作するツールです
6
6
  * ツッコミどころが満載です
7
7
 
8
8
  ## Install
@@ -22,5 +22,7 @@ module Wafoo
22
22
  def removed_print(message)
23
23
  "\e[31m" + message + "\e[0m"
24
24
  end
25
+
26
+ alias error_print removed_print
25
27
  end
26
28
  end
@@ -76,8 +76,10 @@ module Wafoo
76
76
  updates: ipsets
77
77
  )
78
78
  puts 'Apply Finished.'
79
+ exit 0
79
80
  rescue => ex
80
- puts 'Apply Error ' + ex.message
81
+ puts error_print(ex.message)
82
+ exit 1
81
83
  end
82
84
  end
83
85
 
@@ -1,3 +1,3 @@
1
1
  module Wafoo
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wafoo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - inokappa