lorj_cloud 0.1.9 → 0.1.10
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5c527260b8fbf4a84e2a2c7e81bc86e035094e5
|
4
|
+
data.tar.gz: b0672b66787c53238b9d752d712dcf1db072ed8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1279efb7a83e54b746c827bbff184a384e6761dc75cc3f02c092fbf4c5fece9e812dbce927b9979f8ef0777bab42a6fb36ce0645114ca40ddcd3ee3fa731e1ef
|
7
|
+
data.tar.gz: 3a5afaed91a787b78cc3e08c0e57c81fcbd6f99cbe119e46720144440c343a3acfba0b8c1223ee4cbf82052c88e3631a196d48b0a04b87c889aa27b2db7861a1
|
data/lib/lorj_cloud/version.rb
CHANGED
@@ -103,9 +103,17 @@ class Lorj::BaseDefinition
|
|
103
103
|
# network_name:
|
104
104
|
# - IP addresses
|
105
105
|
# The controller must return at least those structured data.
|
106
|
+
# Expect to have Hash with
|
107
|
+
# <network_name> => [<IP>]
|
106
108
|
def_attribute :private_ip_addresses
|
107
109
|
def_attribute :public_ip_address
|
108
110
|
|
111
|
+
# This was added to keep comptibility with app
|
112
|
+
# Expect to have Hash with:
|
113
|
+
# <network_name> => <IP>
|
114
|
+
def_attribute :priv_ip_addresses
|
115
|
+
def_attribute :pub_ip_addresses
|
116
|
+
|
109
117
|
def_attribute :image_id
|
110
118
|
def_attribute :key_name
|
111
119
|
def_attribute :meta_data
|
@@ -98,6 +98,12 @@ class Hpcloud
|
|
98
98
|
def_attr_mapping :public_ip_address,
|
99
99
|
[:addresses, '{/.*/}',
|
100
100
|
'<%= data["OS-EXT-IPS:type"] == "floating" %>|addr']
|
101
|
+
def_attr_mapping :priv_ip_addresses,
|
102
|
+
[:addresses, '{/.*/0}',
|
103
|
+
'<%= data["OS-EXT-IPS:type"] == "fixed" %>|addr']
|
104
|
+
def_attr_mapping :pub_ip_addresses,
|
105
|
+
[:addresses, '{/.*/0}',
|
106
|
+
'<%= data["OS-EXT-IPS:type"] == "floating" %>|addr']
|
101
107
|
def_attr_mapping :meta_data, :metadata
|
102
108
|
|
103
109
|
def_attr_mapping :status, :state
|
@@ -223,6 +223,14 @@ class Openstack
|
|
223
223
|
def_attr_mapping :public_ip_address,
|
224
224
|
[:addresses, '{/.*/}',
|
225
225
|
'<%= data["OS-EXT-IPS:type"] == "floating" %>|addr']
|
226
|
+
|
227
|
+
def_attr_mapping :priv_ip_addresses,
|
228
|
+
[:addresses, '{/.*/0}',
|
229
|
+
'<%= data["OS-EXT-IPS:type"] == "fixed" %>|addr']
|
230
|
+
def_attr_mapping :pub_ip_addresses,
|
231
|
+
[:addresses, '{/.*/0}',
|
232
|
+
'<%= data["OS-EXT-IPS:type"] == "floating" %>|addr']
|
233
|
+
|
226
234
|
def_attr_mapping :image_id, [:image, 'id']
|
227
235
|
def_attr_mapping :meta_data, :metadata
|
228
236
|
|
data/lorj_cloud.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_development_dependency "rspec", "~> 3.1.0"
|
25
25
|
|
26
26
|
spec.add_runtime_dependency "lorj", ">= 1.0.19"
|
27
|
-
spec.add_runtime_dependency 'subhash', '>= 0.1.
|
27
|
+
spec.add_runtime_dependency 'subhash', '>= 0.1.5'
|
28
28
|
spec.add_runtime_dependency "fog", "~> 1.30.0"
|
29
29
|
|
30
30
|
# Ruby 1.8 restrictions - BEGIN - To be removed at next major release.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lorj_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christophe Larsonneur
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.1.
|
75
|
+
version: 0.1.5
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.1.
|
82
|
+
version: 0.1.5
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: fog
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|