openstack-quantum-messager 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,9 +2,8 @@
2
2
  module Openstack
3
3
  module QuantumMessager
4
4
  class Network < L2l3
5
- def initialize(quantum_url, quantum_extension_url)
5
+ def initialize(quantum_url)
6
6
  @quantum_url = quantum_url
7
- @quantum_extension_url = quantum_extension_url
8
7
  end
9
8
 
10
9
  def create(name)
@@ -13,7 +12,7 @@ module Openstack
13
12
  end
14
13
 
15
14
  def list(filters={})
16
- HTTParty.get("#{@quantum_extension_url}/networks.json", :query => filters)
15
+ HTTParty.get("#{@quantum_url}/networks.json", :query => filters)
17
16
  end
18
17
 
19
18
  def show(id)
@@ -2,9 +2,8 @@
2
2
  module Openstack
3
3
  module QuantumMessager
4
4
  class Port < L2l3
5
- def initialize(quantum_url, quantum_extension_url)
5
+ def initialize(quantum_url)
6
6
  @quantum_url = quantum_url
7
- @quantum_extension_url = quantum_extension_url
8
7
  end
9
8
 
10
9
  def create(network_id)
@@ -29,7 +28,7 @@ module Openstack
29
28
  end
30
29
 
31
30
  def list(network_id, filters={})
32
- HTTParty.get("#{@quantum_extension_url}/networks/#{network_id}/ports.json", :query => filters)
31
+ HTTParty.get("#{@quantum_url}/networks/#{network_id}/ports.json", :query => filters)
33
32
  end
34
33
  end
35
34
  end
@@ -40,11 +40,11 @@ module Openstack
40
40
  end
41
41
 
42
42
  def port
43
- @port ||= Port.new(@quantum_url, @quantum_extension_url)
43
+ @port ||= Port.new(@quantum_url)
44
44
  end
45
45
 
46
46
  def network
47
- @network ||= Network.new(@quantum_url, @quantum_extension_url)
47
+ @network ||= Network.new(@quantum_url)
48
48
  end
49
49
 
50
50
  protected
@@ -1,5 +1,5 @@
1
1
  module Openstack
2
2
  module QuantumMessager
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstack-quantum-messager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-26 00:00:00.000000000 Z
12
+ date: 2012-01-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
16
- requirement: &10144940 !ruby/object:Gem::Requirement
16
+ requirement: &8636900 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *10144940
24
+ version_requirements: *8636900
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &10144520 !ruby/object:Gem::Requirement
27
+ requirement: &8636160 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *10144520
35
+ version_requirements: *8636160
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: fakeweb
38
- requirement: &10144100 !ruby/object:Gem::Requirement
38
+ requirement: &8634900 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *10144100
46
+ version_requirements: *8634900
47
47
  description: A simple gem to deal with openstack quantum
48
48
  email:
49
49
  - pothix@pothix.com