yao 0.2.12 → 0.2.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yao/resources/tenant.rb +4 -0
- data/lib/yao/setup.rb +8 -0
- data/lib/yao/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c27d60a20885fe296430fea680eaba2355e26959
|
4
|
+
data.tar.gz: 3378ef250357185bcf33dbfda9240b4dbafe1586
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d29c106b73b0c385048fb6ef2620f9da5ae423c354738a2060654699a967d5c3fdb9f40ffcb6d89211d1dd985d74968b80787f31588c3e52029f9fd2e8501109
|
7
|
+
data.tar.gz: 9f5319428190d79f28964c949e24de2342d1f550a93fa76b4d42aa5936eb8c5a52fda9b07b251f31ef8a7ccb08ba05d76a932addb119277f21f0209d6b415573
|
data/lib/yao/resources/tenant.rb
CHANGED
@@ -16,6 +16,10 @@ module Yao::Resources
|
|
16
16
|
@meters ||= Yao::Meter.list({'q.field' => 'project_id', 'q.op' => 'eq', 'q.value' => id})
|
17
17
|
end
|
18
18
|
|
19
|
+
def ports
|
20
|
+
@ports ||= Yao::Port.list(tenant_id: id)
|
21
|
+
end
|
22
|
+
|
19
23
|
def meters_by_name(meter_name)
|
20
24
|
meters.select{|m| m.name == meter_name}
|
21
25
|
end
|
data/lib/yao/setup.rb
ADDED
data/lib/yao/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yao
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Uchio, KONDO
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -200,6 +200,7 @@ files:
|
|
200
200
|
- lib/yao/resources/subnet.rb
|
201
201
|
- lib/yao/resources/tenant.rb
|
202
202
|
- lib/yao/resources/user.rb
|
203
|
+
- lib/yao/setup.rb
|
203
204
|
- lib/yao/token.rb
|
204
205
|
- lib/yao/version.rb
|
205
206
|
- test/config.rb
|
@@ -237,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
237
238
|
version: '0'
|
238
239
|
requirements: []
|
239
240
|
rubyforge_project:
|
240
|
-
rubygems_version: 2.4.
|
241
|
+
rubygems_version: 2.4.5.1
|
241
242
|
signing_key:
|
242
243
|
specification_version: 4
|
243
244
|
summary: Yet Another OpenStack API Wrapper that rocks!!
|