rest_connection 1.0.13 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
@@ -58,17 +58,14 @@ class Deployment
|
|
58
58
|
connection.put(deploy_href.path, :deployment => {:parameters => {name => value} })
|
59
59
|
end
|
60
60
|
|
61
|
+
# Function iterates over each server in hash and calls for appropiate object creation, (Server
|
62
|
+
# or McServer), from ServerInteraface.
|
63
|
+
#
|
64
|
+
# @return [Hash] servers
|
65
|
+
#
|
61
66
|
def servers_no_reload
|
62
67
|
connection.logger("WARNING: No Servers in the Deployment!") if @params['servers'].empty?
|
63
68
|
|
64
|
-
cloud_id = nil
|
65
|
-
@params["tags"].each do |hash|
|
66
|
-
if hash["name"] =~ /info:cloud=(\d+)/
|
67
|
-
cloud_id = $1
|
68
|
-
break
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
69
|
unless @params['servers'].reduce(true) { |bool,s| bool && s.is_a?(ServerInterface) }
|
73
70
|
@params['servers'].map! do |s|
|
74
71
|
# Create a temporary, legacy type server for each server in deployment.
|
@@ -88,7 +85,9 @@ class Deployment
|
|
88
85
|
# Now we pass on cloud_id, it will be nil for generic servers, of a valid number for AWS servers
|
89
86
|
ServerInterface.new(cloud_id, s, self.rs_id)
|
90
87
|
end
|
91
|
-
|
88
|
+
end
|
89
|
+
|
90
|
+
@params['servers']
|
92
91
|
end
|
93
92
|
|
94
93
|
def servers
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rest_connection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 14
|
10
|
+
version: 1.0.14
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- RightScale, Inc.
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2014-04-
|
18
|
+
date: 2014-04-07 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
requirement: &id001 !ruby/object:Gem::Requirement
|