aws_ro 1.2.0.beta2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -4,7 +4,7 @@ Wrapper class of AWS Resource objects to enable to access properties more easily
4
4
 
5
5
  The targets of this library are small and medium scale AWS systems.
6
6
 
7
- Now supported only `Aws::EC2` and `Aws::ElasticLoadBalancing`.
7
+ Now supported only `Aws::EC2`, `Aws::ElasticLoadBalancing` and `Aws::ElasticLoadBalancingV2`.
8
8
 
9
9
  ## Installation
10
10
 
@@ -66,6 +66,22 @@ instances.each do |i|
66
66
  end
67
67
  ```
68
68
 
69
+ ```ruby
70
+ puts "Print ALB rules and targets"
71
+ options = { region: 'ap-northeast-1' }
72
+ albs = AwsRo::ElasticLoadBalancingV2::Repository.new(options).all
73
+ albs.each do |lb|
74
+ puts "LoadBalancer: #{lb.name}"
75
+ lb.listeners.each do |listener|
76
+ puts "- #{listener.protocol} (#{listener.port})"
77
+ listener.rules.each do |rule|
78
+ pattern = rule.default? ? '<blank>' : rule.path_pattern
79
+ puts " - #{pattern} : #{rule.forward_target_group.name} (#{rule.priority})"
80
+ end
81
+ end
82
+ end
83
+ ```
84
+
69
85
  ### Classes
70
86
  #### class : `AwsRo::EC2::Repository`
71
87
 
@@ -2,7 +2,7 @@ module AwsRo
2
2
  module ElasticLoadBalancingV2
3
3
  class LoadBalancer
4
4
  extend Forwardable
5
- def_delegators :@load_balancer, :load_balancer_name, :load_balancer_arn, :vpc_id
5
+ def_delegators :@load_balancer, *Aws::ElasticLoadBalancingV2::Types::LoadBalancer.members
6
6
  attr_reader :client, :load_balancer
7
7
  alias alb load_balancer
8
8
  alias name load_balancer_name
@@ -22,7 +22,7 @@ module AwsRo
22
22
 
23
23
  class Listener
24
24
  extend Forwardable
25
- def_delegators :@listener, :listener_arn, :port, :protocol
25
+ def_delegators :@listener, *Aws::ElasticLoadBalancingV2::Types::Listener.members
26
26
  attr_reader :client, :listener
27
27
  alias arn listener_arn
28
28
 
@@ -40,7 +40,7 @@ module AwsRo
40
40
 
41
41
  class Rule
42
42
  extend Forwardable
43
- def_delegators :@rule, :rule_arn, :priority, :is_default
43
+ def_delegators :@rule, *Aws::ElasticLoadBalancingV2::Types::Rule.members
44
44
  attr_reader :client, :rule
45
45
  alias arn rule_arn
46
46
  alias default? is_default
@@ -62,8 +62,11 @@ module AwsRo
62
62
  end
63
63
 
64
64
  class TargetGroup
65
+ extend Forwardable
66
+ def_delegators :target_group, *Aws::ElasticLoadBalancingV2::Types::TargetGroup.members
65
67
  attr_reader :client, :target_group_arn
66
68
  alias arn target_group_arn
69
+ alias name target_group_name
67
70
 
68
71
  def initialize(arn, client)
69
72
  @target_group_arn = arn
@@ -1,3 +1,3 @@
1
1
  module AwsRo
2
- VERSION = "1.2.0.beta2"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,125 +1,139 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws_ro
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.beta2
4
+ version: 1.2.0
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - takuto.komazaki
8
9
  autorequire:
9
10
  bindir: exe
10
11
  cert_chain: []
11
- date: 2016-11-28 00:00:00.000000000 Z
12
+ date: 2016-12-02 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: aws-sdk
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - "~>"
19
+ - - ~>
18
20
  - !ruby/object:Gem::Version
19
21
  version: 2.5.3
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - "~>"
27
+ - - ~>
25
28
  - !ruby/object:Gem::Version
26
29
  version: 2.5.3
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: bundler
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - "~>"
35
+ - - ~>
32
36
  - !ruby/object:Gem::Version
33
37
  version: '1.9'
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - "~>"
43
+ - - ~>
39
44
  - !ruby/object:Gem::Version
40
45
  version: '1.9'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: rake
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - "~>"
51
+ - - ~>
46
52
  - !ruby/object:Gem::Version
47
53
  version: '10.0'
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - "~>"
59
+ - - ~>
53
60
  - !ruby/object:Gem::Version
54
61
  version: '10.0'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: rspec
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - "~>"
67
+ - - ~>
60
68
  - !ruby/object:Gem::Version
61
69
  version: '3.0'
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - "~>"
75
+ - - ~>
67
76
  - !ruby/object:Gem::Version
68
77
  version: '3.0'
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: yard
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - ">="
83
+ - - ! '>='
74
84
  - !ruby/object:Gem::Version
75
85
  version: '0'
76
86
  type: :development
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
- - - ">="
91
+ - - ! '>='
81
92
  - !ruby/object:Gem::Version
82
93
  version: '0'
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: guard-rspec
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
- - - ">="
99
+ - - ! '>='
88
100
  - !ruby/object:Gem::Version
89
101
  version: '0'
90
102
  type: :development
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
- - - ">="
107
+ - - ! '>='
95
108
  - !ruby/object:Gem::Version
96
109
  version: '0'
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: pry
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
- - - ">="
115
+ - - ! '>='
102
116
  - !ruby/object:Gem::Version
103
117
  version: '0'
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
- - - ">="
123
+ - - ! '>='
109
124
  - !ruby/object:Gem::Version
110
125
  version: '0'
111
- description: |
112
- Wrpper library of AWS SDK objects to enable to access properties
113
- more easily, more ruby-likely.
126
+ description: ! "Wrpper library of AWS SDK objects to enable to access properties\n
127
+ more easily, more ruby-likely.\n"
114
128
  email:
115
129
  - takuto.komazaki@gree.net
116
130
  executables: []
117
131
  extensions: []
118
132
  extra_rdoc_files: []
119
133
  files:
120
- - ".gitignore"
121
- - ".rspec"
122
- - ".rubocop.yml"
134
+ - .gitignore
135
+ - .rspec
136
+ - .rubocop.yml
123
137
  - Gemfile
124
138
  - Guardfile
125
139
  - LICENSE.txt
@@ -142,26 +156,30 @@ files:
142
156
  - lib/aws_ro/version.rb
143
157
  homepage: https://github.com/gree/aws_ro
144
158
  licenses: []
145
- metadata: {}
146
159
  post_install_message:
147
160
  rdoc_options: []
148
161
  require_paths:
149
162
  - lib
150
163
  required_ruby_version: !ruby/object:Gem::Requirement
164
+ none: false
151
165
  requirements:
152
- - - ">="
166
+ - - ! '>='
153
167
  - !ruby/object:Gem::Version
154
168
  version: 1.9.3
155
169
  required_rubygems_version: !ruby/object:Gem::Requirement
170
+ none: false
156
171
  requirements:
157
- - - ">"
172
+ - - ! '>='
158
173
  - !ruby/object:Gem::Version
159
- version: 1.3.1
174
+ version: '0'
175
+ segments:
176
+ - 0
177
+ hash: 2500774459570546112
160
178
  requirements: []
161
179
  rubyforge_project:
162
- rubygems_version: 2.5.1
180
+ rubygems_version: 1.8.23.2
163
181
  signing_key:
164
- specification_version: 4
182
+ specification_version: 3
165
183
  summary: Wrpper library of AWS SDK objects.
166
184
  test_files: []
167
185
  has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 0c18e548a0da730683c6a4937fd9addfc5856c30
4
- data.tar.gz: 55b30093702b619c7d7da8b66b0a483638cb297f
5
- SHA512:
6
- metadata.gz: 1fb7230a4a72082a99a329a01bd133767217d8772fc6ac13b6f259a63298b51e005324575b87744fdd3f9da44df606a4bc137ded660378fbc21a571e4c061b1a
7
- data.tar.gz: 9992c0ee0baa64e29121fa68ddd8cf149765522d602eb3730961ed125c64ac1c0971b31aaf9cc9ab2fcbe0dac00b664c5f29ffd3de3546b36a6db66c72440cd3