prof 0.31.17 → 0.32.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/prof/cloud_foundry.rb +12 -0
- data/lib/prof/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f28d50d262d8b8224ba2d09451964fdb63dd916
|
4
|
+
data.tar.gz: 77838236f26763ff9cc0dfb37e587f9ae675e24f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8533e5ddd7b7ccc465096ec48789f3089328cffd63ba8c22e0de802bfb0bec94a7dfdc99071d85ab0ebd1de01bcaff915ce5b22f57362064fa6153d1b24b75f2
|
7
|
+
data.tar.gz: db56ed3337f9a53ee7ef9c4c0c4ce62537cbad81c55069bad826726015a7b4e189c189f89ff00fcb07c6fe81c7518643a9ce9e82b20c35d2dc6b0005f5cf7760
|
data/lib/prof/cloud_foundry.rb
CHANGED
@@ -110,12 +110,24 @@ module Prof
|
|
110
110
|
|
111
111
|
def provision_and_create_service_key(service, &_block)
|
112
112
|
provision_service(service) do |service_instance|
|
113
|
+
wait_for_service_creation(service_instance)
|
113
114
|
create_service_key(service_instance) do |service_key, service_key_data|
|
114
115
|
yield service_instance, service_key, service_key_data
|
115
116
|
end
|
116
117
|
end
|
117
118
|
end
|
118
119
|
|
120
|
+
def wait_for_service_creation(service_instance)
|
121
|
+
Timeout::timeout(12 * 60) do
|
122
|
+
loop do
|
123
|
+
status = hula_cloud_foundry.get_service_status(service_instance.name)
|
124
|
+
return if status == 'create succeeded'
|
125
|
+
raise "service instance creation failed: #{service_instance.name}" if status.include? 'failed'
|
126
|
+
sleep 5
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
119
131
|
def list_service_keys(service_instance)
|
120
132
|
hula_cloud_foundry.list_service_keys(service_instance.name)
|
121
133
|
end
|
data/lib/prof/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prof
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.32.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CF London
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem-release
|
@@ -212,14 +212,14 @@ dependencies:
|
|
212
212
|
requirements:
|
213
213
|
- - "~>"
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: 0.
|
215
|
+
version: 0.9.0
|
216
216
|
type: :runtime
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
220
|
- - "~>"
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: 0.
|
222
|
+
version: 0.9.0
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
224
|
name: net-ssh-gateway
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|