pec 0.4.0 → 0.4.1

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: 51d1f4a559c7dc366bb4c442104d9760484bef59
4
- data.tar.gz: 437e6972dc94cbe1ac4b972206973b08156a1919
3
+ metadata.gz: 3bd1c0b9d06d7f5f397115c225984629dacf6a5e
4
+ data.tar.gz: 6a3d33816da1c1ac92204181d0124844b39c02ad
5
5
  SHA512:
6
- metadata.gz: dc363157a8f5b2c33e1fbf32460aae9d4abde925ca46f7dea1ca37585f10db1a176e0ca70b36d7a16b45b997d461019c8f13421d7e45951c1e01110386a2d5a1
7
- data.tar.gz: 5cecc2df45db91965807350748c6a60d12c7891d0eac9c4c74a87140379391a42927ad3d4c4a8aaa6ac01c827ef683a9c4663fae1bd5a6993bafd2a398ea58a8
6
+ metadata.gz: cc3289fb90e09a4374b938ce64c22a3d96a8529d4860ea46084af5e2eb38eab3a70612c8c29b962b7a13ad82b82d3f66e36fe54746dbdc178929d211b914f7fa
7
+ data.tar.gz: 403f0e7d502d23c2fca33faa579aff374feadeed627870e6c869768235bcdedd4f8a21bdd89a0837e67b3cd0e8893d9e809ee581d9c91cbeb7bc8d11104c65f7
data/lib/pec.rb CHANGED
@@ -22,7 +22,7 @@ require "pec/compute/server"
22
22
  require "pec/compute/flavor"
23
23
  require "pec/compute/image"
24
24
  require "pec/compute/tenant"
25
- require "pec/compute/security_group"
25
+ require "pec/network/security_group"
26
26
  require "pec/network/port"
27
27
  require "pec/network/port_state"
28
28
  require "pec/network/subnet"
@@ -28,7 +28,7 @@ module Pec
28
28
 
29
29
  def get_security_group_id(security_groups)
30
30
  security_groups.map do |sg_name|
31
- sg = Pec::Compute::Security_Group.fetch(sg_name)
31
+ sg = Pec::Network::Security_Group.fetch(sg_name)
32
32
  raise(Pec::Errors::SecurityGroup, "security_group:#{sg_name} is not found!") unless sg
33
33
  sg["id"]
34
34
  end if security_groups
@@ -1,5 +1,5 @@
1
1
  module Pec
2
- class Compute
2
+ class Network
3
3
  class Security_Group
4
4
  extend Query
5
5
  end
@@ -20,7 +20,7 @@ module Pec
20
20
  end
21
21
 
22
22
  def security_group_list
23
- @_security_groups ||= @compute.list_security_groups[:body]['security_groups']
23
+ @_security_groups ||= @network.list_security_groups[:body]['security_groups']
24
24
  end
25
25
 
26
26
  def image_list
data/lib/pec/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pec
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - kazuhiko yamashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-07 00:00:00.000000000 Z
11
+ date: 2015-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -146,7 +146,6 @@ files:
146
146
  - lib/pec/cli.rb
147
147
  - lib/pec/compute/flavor.rb
148
148
  - lib/pec/compute/image.rb
149
- - lib/pec/compute/security_group.rb
150
149
  - lib/pec/compute/server.rb
151
150
  - lib/pec/compute/tenant.rb
152
151
  - lib/pec/configure.rb
@@ -163,6 +162,7 @@ files:
163
162
  - lib/pec/init.rb
164
163
  - lib/pec/network/port.rb
165
164
  - lib/pec/network/port_state.rb
165
+ - lib/pec/network/security_group.rb
166
166
  - lib/pec/network/subnet.rb
167
167
  - lib/pec/query.rb
168
168
  - lib/pec/resource.rb