wafoo 0.0.8 → 0.0.9

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: ae47f637ee5e203e5be1ecfc645b5235c14d9d525f0e05e05758f8b0c0581a0c
4
- data.tar.gz: 0c55bc47b3cce6094df752cf0c389dc3d90b477a958db9ed2f056c3716d4dc67
3
+ metadata.gz: 48f3ccc3529e9d47334dad1e6a4e4ae249a84a4b975f5a467689996839ef5c00
4
+ data.tar.gz: 5fd7483ea47f2e9dad52cb08295b6f5de66dead2a23e625780bafe323cf36095
5
5
  SHA512:
6
- metadata.gz: 0516c125ac532a342af5c3269d5e4ce35104e88f4ef2c0c17542124379f79e994a854b7cce478e56350a8ff133373dfcbf44e661e31c8a39d1b30fd40818e360
7
- data.tar.gz: 4576e4ae88523dc12dcc7cf592d2e6f0b6d4bfcc5242b6ba1e96de4756fafad98af0bd7722153fbe5adf8d27592ecd87f886fd1dec6ea2a6ec281cd6429201c5
6
+ metadata.gz: f5b6af2c424a8e711db60fe40f04260dad4bd6399f513da160a75d2bfe7f7a8364a00744f892530bd49ae019a81590895908032b4b003f2adce3d31f2d066d54
7
+ data.tar.gz: 6662ee5f5ce11428be0a8206e023f8838d152469f73be628793305741bf29e1cf08cfee28f5d23cb194d793241335f39ea4f360ae01f15d48c2a7aa515af308a
@@ -1,7 +1,7 @@
1
1
  require 'thor'
2
2
  require 'aws-sdk-waf'
3
3
  require 'aws-sdk-wafregional'
4
- require 'awsecrets'
4
+ # require 'awsecrets'
5
5
  require 'diffy'
6
6
  require 'netaddr'
7
7
  require 'terminal-table'
@@ -2,7 +2,7 @@ require 'wafoo'
2
2
 
3
3
  module Wafoo
4
4
  class CLI < Thor
5
- Awsecrets.load
5
+ # Awsecrets.load
6
6
 
7
7
  default_command :version
8
8
  class_option :profile
@@ -9,17 +9,17 @@ module Wafoo
9
9
  # Stub は個別にロードしてあげないといけないので苦肉の策
10
10
  Wafoo::Stub.load('waf') if ENV['LOAD_STUB'] == 'true'
11
11
  @waf = Aws::WAF::Client.new
12
- @waf_webacls = get_waf_webacls
13
12
 
14
13
  # Stub は個別にロードしてあげないといけないので苦肉の策
15
14
  Wafoo::Stub.load('wafregional') if ENV['LOAD_STUB'] == 'true'
16
15
  @waf_regional = Aws::WAFRegional::Client.new
17
- @wafregioal_webacls = get_wafregional_webacls
18
16
 
19
- @all_waf_webacls = @waf_webacls + @wafregioal_webacls
17
+ @full = options[:full] unless options.nil?
18
+ @waf_webacls = get_waf_webacls if @full
19
+ @wafregioal_webacls = get_wafregional_webacls if @full
20
+ @all_waf_webacls = @waf_webacls + @wafregioal_webacls if @full
20
21
 
21
22
  @regional = options[:regional] unless options.nil?
22
- @full = options[:full] unless options.nil?
23
23
  FileUtils.mkdir_p(IP_SETS_DIR) unless FileTest.exist?(IP_SETS_DIR)
24
24
  end
25
25
 
@@ -1,3 +1,3 @@
1
1
  module Wafoo
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
34
34
 
35
35
  spec.add_dependency 'aws-sdk-waf'
36
36
  spec.add_dependency 'aws-sdk-wafregional'
37
- spec.add_dependency 'awsecrets'
37
+ # spec.add_dependency 'awsecrets'
38
38
  spec.add_dependency 'diffy'
39
39
  spec.add_dependency 'netaddr', '>= 2.0.4'
40
40
  spec.add_dependency 'terminal-table'
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.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - inokappa
@@ -108,20 +108,6 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: awsecrets
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :runtime
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: diffy
127
113
  requirement: !ruby/object:Gem::Requirement