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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ba6bbb61ac0dccafc6c7f7fb85619c9d8df9d95
4
- data.tar.gz: 9fb181f0d962f32da433a2646c519f4f8665d2f5
3
+ metadata.gz: 4f28d50d262d8b8224ba2d09451964fdb63dd916
4
+ data.tar.gz: 77838236f26763ff9cc0dfb37e587f9ae675e24f
5
5
  SHA512:
6
- metadata.gz: 6ca41f4e37511c34da8646a3e962f41d3f4febe0a908c3eb42ba63ac04a72b9a4b70ed045be9809b45563daea321fa7d9c90b2ef9a41c4494f7eec683a14fd1d
7
- data.tar.gz: 3b82cd75163c2ee4c47be82d46be2e5bb56d71a8de9d30bcbdbe3185a8ab9f0896a1ec86ab6f99c3df0039626e506288958316723ff46a54a1ddcf718332096b
6
+ metadata.gz: 8533e5ddd7b7ccc465096ec48789f3089328cffd63ba8c22e0de802bfb0bec94a7dfdc99071d85ab0ebd1de01bcaff915ce5b22f57362064fa6153d1b24b75f2
7
+ data.tar.gz: db56ed3337f9a53ee7ef9c4c0c4ce62537cbad81c55069bad826726015a7b4e189c189f89ff00fcb07c6fe81c7518643a9ce9e82b20c35d2dc6b0005f5cf7760
@@ -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
@@ -9,5 +9,5 @@
9
9
  #
10
10
 
11
11
  module Prof
12
- VERSION = '0.31.17'
12
+ VERSION = '0.32.0'
13
13
  end
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.31.17
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: 2016-10-28 00:00:00.000000000 Z
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.8.9
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.8.9
222
+ version: 0.9.0
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: net-ssh-gateway
225
225
  requirement: !ruby/object:Gem::Requirement