cf-autoconfig 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cf-autoconfig.rb +3 -0
- data/lib/{cfautoconfig → cf-autoconfig}/blob/aws_s3.rb +3 -3
- data/lib/{cfautoconfig → cf-autoconfig}/blob/aws_s3_configurer.rb +1 -1
- data/lib/{cfautoconfig → cf-autoconfig}/configuration_helper.rb +0 -0
- data/lib/{cfautoconfig → cf-autoconfig}/configurer.rb +9 -9
- data/lib/{cfautoconfig → cf-autoconfig}/document/mongodb.rb +1 -1
- data/lib/{cfautoconfig → cf-autoconfig}/document/mongodb_configurer.rb +1 -1
- data/lib/{cfautoconfig → cf-autoconfig}/keyvalue/redis.rb +3 -3
- data/lib/{cfautoconfig → cf-autoconfig}/keyvalue/redis_configurer.rb +1 -1
- data/lib/{cfautoconfig → cf-autoconfig}/messaging/amqp.rb +3 -3
- data/lib/{cfautoconfig → cf-autoconfig}/messaging/amqp_configurer.rb +2 -2
- data/lib/{cfautoconfig → cf-autoconfig}/messaging/carrot.rb +3 -3
- data/lib/{cfautoconfig → cf-autoconfig}/messaging/carrot_configurer.rb +2 -2
- data/lib/{cfautoconfig → cf-autoconfig}/relational/mysql.rb +3 -3
- data/lib/{cfautoconfig → cf-autoconfig}/relational/mysql_configurer.rb +1 -1
- data/lib/{cfautoconfig → cf-autoconfig}/relational/postgres.rb +1 -1
- data/lib/{cfautoconfig → cf-autoconfig}/relational/postgres_configurer.rb +1 -1
- data/lib/{cfautoconfig → cf-autoconfig}/version.rb +2 -2
- metadata +22 -22
- data/lib/cfautoconfig.rb +0 -3
@@ -1,5 +1,5 @@
|
|
1
|
-
require '
|
2
|
-
require '
|
1
|
+
require 'cf-runtime/properties'
|
2
|
+
require 'cf-runtime/aws_s3'
|
3
3
|
|
4
4
|
module AutoReconfiguration
|
5
5
|
SUPPORTED_AWS_S3_VERSION = '0.6.3'
|
@@ -20,4 +20,4 @@ module AutoReconfiguration
|
|
20
20
|
original_connect options
|
21
21
|
end
|
22
22
|
end
|
23
|
-
end
|
23
|
+
end
|
File without changes
|
@@ -1,44 +1,44 @@
|
|
1
|
-
require '
|
1
|
+
require 'cf-runtime/properties'
|
2
2
|
|
3
3
|
if CFRuntime::CloudApp.service_props('redis')
|
4
4
|
puts "Loading Redis auto-reconfiguration."
|
5
|
-
require '
|
5
|
+
require 'cf-autoconfig/keyvalue/redis_configurer'
|
6
6
|
else
|
7
7
|
puts "No Redis service bound to app. Skipping auto-reconfiguration."
|
8
8
|
end
|
9
9
|
|
10
10
|
if CFRuntime::CloudApp.service_props('mongodb')
|
11
11
|
puts "Loading MongoDB auto-reconfiguration."
|
12
|
-
require '
|
12
|
+
require 'cf-autoconfig/document/mongodb_configurer'
|
13
13
|
else
|
14
14
|
puts "No Mongo service bound to app. Skipping auto-reconfiguration."
|
15
15
|
end
|
16
16
|
|
17
17
|
if CFRuntime::CloudApp.service_props('mysql')
|
18
18
|
puts "Loading MySQL auto-reconfiguration."
|
19
|
-
require '
|
19
|
+
require 'cf-autoconfig/relational/mysql_configurer'
|
20
20
|
else
|
21
21
|
puts "No MySQL service bound to app. Skipping auto-reconfiguration."
|
22
22
|
end
|
23
23
|
|
24
24
|
if CFRuntime::CloudApp.service_props('postgresql')
|
25
25
|
puts "Loading PostgreSQL auto-reconfiguration."
|
26
|
-
require '
|
26
|
+
require 'cf-autoconfig/relational/postgres_configurer'
|
27
27
|
else
|
28
28
|
puts "No PostgreSQL service bound to app. Skipping auto-reconfiguration."
|
29
29
|
end
|
30
30
|
|
31
31
|
if CFRuntime::CloudApp.service_props('rabbitmq')
|
32
32
|
puts "Loading RabbitMQ auto-reconfiguration."
|
33
|
-
require '
|
34
|
-
require '
|
33
|
+
require 'cf-autoconfig/messaging/amqp_configurer'
|
34
|
+
require 'cf-autoconfig/messaging/carrot_configurer'
|
35
35
|
else
|
36
36
|
puts "No RabbitMQ service bound to app. Skipping auto-reconfiguration."
|
37
37
|
end
|
38
38
|
|
39
39
|
if CFRuntime::CloudApp.service_props('blob')
|
40
40
|
puts "Loading Blob auto-reconfiguration."
|
41
|
-
require '
|
41
|
+
require 'cf-autoconfig/blob/aws_s3_configurer'
|
42
42
|
else
|
43
43
|
puts "No Blob service bound to app. Skipping auto-reconfiguration."
|
44
|
-
end
|
44
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
|
-
require '
|
2
|
-
require '
|
1
|
+
require 'cf-runtime/properties'
|
2
|
+
require 'cf-runtime/redis'
|
3
3
|
|
4
4
|
module AutoReconfiguration
|
5
5
|
SUPPORTED_REDIS_VERSION = '2.0'
|
@@ -21,4 +21,4 @@ module AutoReconfiguration
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
24
|
-
end
|
24
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
|
-
require '
|
2
|
-
require '
|
1
|
+
require 'cf-runtime/properties'
|
2
|
+
require 'cf-runtime/amqp'
|
3
3
|
|
4
4
|
module AutoReconfiguration
|
5
5
|
SUPPORTED_AMQP_VERSION = '0.8'
|
@@ -27,4 +27,4 @@ module AutoReconfiguration
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
30
|
-
end
|
30
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'cf-autoconfig/configuration_helper'
|
2
2
|
begin
|
3
3
|
#Require amqp here is mandatory for configurer to ensure class is loaded before applying OpenClass
|
4
4
|
require "amqp"
|
@@ -30,4 +30,4 @@ begin
|
|
30
30
|
end
|
31
31
|
rescue LoadError
|
32
32
|
puts "No AMQP Library Found. Skipping auto-reconfiguration."
|
33
|
-
end
|
33
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
|
-
require '
|
2
|
-
require '
|
1
|
+
require 'cf-runtime/properties'
|
2
|
+
require 'cf-runtime/carrot'
|
3
3
|
|
4
4
|
module AutoReconfiguration
|
5
5
|
SUPPORTED_CARROT_VERSION = '1.0'
|
@@ -21,4 +21,4 @@ module AutoReconfiguration
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
24
|
-
end
|
24
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'cf-autoconfig/configuration_helper'
|
2
2
|
begin
|
3
3
|
#Require carrot here is mandatory for configurer to ensure class is loaded before applying OpenClass
|
4
4
|
require "carrot"
|
@@ -30,4 +30,4 @@ begin
|
|
30
30
|
end
|
31
31
|
rescue LoadError
|
32
32
|
puts "No Carrot Library Found. Skipping auto-reconfiguration."
|
33
|
-
end
|
33
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
|
-
require '
|
2
|
-
require '
|
1
|
+
require 'cf-runtime/properties'
|
2
|
+
require 'cf-runtime/mysql'
|
3
3
|
|
4
4
|
module AutoReconfiguration
|
5
5
|
SUPPORTED_MYSQL2_VERSION = '0.2.7'
|
@@ -9,7 +9,7 @@ module AutoReconfiguration
|
|
9
9
|
base.send( :alias_method, :original_initialize, :initialize)
|
10
10
|
base.send( :alias_method, :initialize, :initialize_with_cf )
|
11
11
|
end
|
12
|
-
|
12
|
+
|
13
13
|
def initialize_with_cf(opts = {})
|
14
14
|
service_names = CFRuntime::CloudApp.service_names_of_type('mysql')
|
15
15
|
if service_names.length == 1
|
@@ -1,3 +1,3 @@
|
|
1
1
|
module AutoReconfiguration
|
2
|
-
VERSION = '0.
|
3
|
-
end
|
2
|
+
VERSION = '0.2.0'
|
3
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cf-autoconfig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cf-runtime
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.2.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.2.0
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: redis
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -227,24 +227,24 @@ extra_rdoc_files:
|
|
227
227
|
- LICENSE
|
228
228
|
files:
|
229
229
|
- LICENSE
|
230
|
-
- lib/
|
231
|
-
- lib/
|
232
|
-
- lib/
|
233
|
-
- lib/
|
234
|
-
- lib/
|
235
|
-
- lib/
|
236
|
-
- lib/
|
237
|
-
- lib/
|
238
|
-
- lib/
|
239
|
-
- lib/
|
240
|
-
- lib/
|
241
|
-
- lib/
|
242
|
-
- lib/
|
243
|
-
- lib/
|
244
|
-
- lib/
|
245
|
-
- lib/
|
246
|
-
- lib/
|
247
|
-
- lib/
|
230
|
+
- lib/cf-autoconfig/blob/aws_s3.rb
|
231
|
+
- lib/cf-autoconfig/blob/aws_s3_configurer.rb
|
232
|
+
- lib/cf-autoconfig/configuration_helper.rb
|
233
|
+
- lib/cf-autoconfig/configurer.rb
|
234
|
+
- lib/cf-autoconfig/document/mongodb.rb
|
235
|
+
- lib/cf-autoconfig/document/mongodb_configurer.rb
|
236
|
+
- lib/cf-autoconfig/keyvalue/redis.rb
|
237
|
+
- lib/cf-autoconfig/keyvalue/redis_configurer.rb
|
238
|
+
- lib/cf-autoconfig/messaging/amqp.rb
|
239
|
+
- lib/cf-autoconfig/messaging/amqp_configurer.rb
|
240
|
+
- lib/cf-autoconfig/messaging/carrot.rb
|
241
|
+
- lib/cf-autoconfig/messaging/carrot_configurer.rb
|
242
|
+
- lib/cf-autoconfig/relational/mysql.rb
|
243
|
+
- lib/cf-autoconfig/relational/mysql_configurer.rb
|
244
|
+
- lib/cf-autoconfig/relational/postgres.rb
|
245
|
+
- lib/cf-autoconfig/relational/postgres_configurer.rb
|
246
|
+
- lib/cf-autoconfig/version.rb
|
247
|
+
- lib/cf-autoconfig.rb
|
248
248
|
homepage: http://vmware.com
|
249
249
|
licenses: []
|
250
250
|
post_install_message:
|
data/lib/cfautoconfig.rb
DELETED