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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 906c17b5fd4d30db28ae3338f591a18cff3798e2
4
- data.tar.gz: f9f55488c58e43f8ac6c50923cc717ce4091bb11
3
+ metadata.gz: c27d60a20885fe296430fea680eaba2355e26959
4
+ data.tar.gz: 3378ef250357185bcf33dbfda9240b4dbafe1586
5
5
  SHA512:
6
- metadata.gz: f935edeb5201604969ad2ac71ad39b25795d55f02e9d7fdc4ad8bd7048b1eca1ee15289bae1cb3a6e4717368a7a7fc01d6bfd0f4c24a7065eb55927f320836f9
7
- data.tar.gz: c45079ed8e8e107660d19c683155d43bce62e4ee3504c8885ed7b72d0c43f60bfb1a601282405f3640288ed4dbfcf00254f7d52750449646a574f338c6b981be
6
+ metadata.gz: d29c106b73b0c385048fb6ef2620f9da5ae423c354738a2060654699a967d5c3fdb9f40ffcb6d89211d1dd985d74968b80787f31588c3e52029f9fd2e8501109
7
+ data.tar.gz: 9f5319428190d79f28964c949e24de2342d1f550a93fa76b4d42aa5936eb8c5a52fda9b07b251f31ef8a7ccb08ba05d76a932addb119277f21f0209d6b415573
@@ -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
@@ -0,0 +1,8 @@
1
+ require 'yao'
2
+
3
+ Yao.config do
4
+ auth_url ENV['OS_AUTH_URL']
5
+ tenant_name ENV['OS_TENANT_NAME']
6
+ username ENV['OS_USERNAME']
7
+ password ENV['OS_PASSWORD']
8
+ end
data/lib/yao/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Yao
2
- VERSION = "0.2.12"
2
+ VERSION = "0.2.13"
3
3
  end
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.12
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-05-31 00:00:00.000000000 Z
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.8
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!!