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.
@@ -0,0 +1,3 @@
1
+ require 'rubygems'
2
+ require 'cf-autoconfig/configurer'
3
+ require 'cf-autoconfig/version'
@@ -1,5 +1,5 @@
1
- require 'cfruntime/properties'
2
- require 'cfruntime/aws_s3'
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
@@ -1,4 +1,4 @@
1
- require 'cfautoconfig/configuration_helper'
1
+ require 'cf-autoconfig/configuration_helper'
2
2
  begin
3
3
  require 'aws/s3'
4
4
  require File.join(File.dirname(__FILE__), 'aws_s3')
@@ -1,44 +1,44 @@
1
- require 'cfruntime/properties'
1
+ require 'cf-runtime/properties'
2
2
 
3
3
  if CFRuntime::CloudApp.service_props('redis')
4
4
  puts "Loading Redis auto-reconfiguration."
5
- require 'cfautoconfig/keyvalue/redis_configurer'
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 'cfautoconfig/document/mongodb_configurer'
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 'cfautoconfig/relational/mysql_configurer'
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 'cfautoconfig/relational/postgres_configurer'
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 'cfautoconfig/messaging/amqp_configurer'
34
- require 'cfautoconfig/messaging/carrot_configurer'
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 'cfautoconfig/blob/aws_s3_configurer'
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,4 +1,4 @@
1
- require 'cfruntime/properties'
1
+ require 'cf-runtime/properties'
2
2
 
3
3
  module AutoReconfiguration
4
4
  SUPPORTED_MONGO_VERSION = '1.2.0'
@@ -1,4 +1,4 @@
1
- require 'cfautoconfig/configuration_helper'
1
+ require 'cf-autoconfig/configuration_helper'
2
2
  begin
3
3
  #Require mongo here is mandatory for configurer to ensure class is loaded before applying OpenClass
4
4
  require "mongo"
@@ -1,5 +1,5 @@
1
- require 'cfruntime/properties'
2
- require 'cfruntime/redis'
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,4 +1,4 @@
1
- require 'cfautoconfig/configuration_helper'
1
+ require 'cf-autoconfig/configuration_helper'
2
2
  begin
3
3
  require 'redis'
4
4
  require File.join(File.dirname(__FILE__), 'redis')
@@ -1,5 +1,5 @@
1
- require 'cfruntime/properties'
2
- require 'cfruntime/amqp'
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 'cfautoconfig/configuration_helper'
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 'cfruntime/properties'
2
- require 'cfruntime/carrot'
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 'cfautoconfig/configuration_helper'
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 'cfruntime/properties'
2
- require 'cfruntime/mysql'
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,4 +1,4 @@
1
- require 'cfautoconfig/configuration_helper'
1
+ require 'cf-autoconfig/configuration_helper'
2
2
 
3
3
  begin
4
4
  #Require mysql2 here is mandatory for configurer to ensure class is loaded before applying OpenClass
@@ -1,4 +1,4 @@
1
- require 'cfruntime/properties'
1
+ require 'cf-runtime/properties'
2
2
  module AutoReconfiguration
3
3
  SUPPORTED_PG_VERSION = '0.11.0'
4
4
  module Postgres
@@ -1,4 +1,4 @@
1
- require 'cfautoconfig/configuration_helper'
1
+ require 'cf-autoconfig/configuration_helper'
2
2
  begin
3
3
  #Require pg here is mandatory for configurer to ensure class is loaded before applying OpenClass
4
4
  require "pg"
@@ -1,3 +1,3 @@
1
1
  module AutoReconfiguration
2
- VERSION = '0.1.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.1.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-06 00:00:00.000000000 Z
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.1.1
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.1.1
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/cfautoconfig/blob/aws_s3.rb
231
- - lib/cfautoconfig/blob/aws_s3_configurer.rb
232
- - lib/cfautoconfig/configuration_helper.rb
233
- - lib/cfautoconfig/configurer.rb
234
- - lib/cfautoconfig/document/mongodb.rb
235
- - lib/cfautoconfig/document/mongodb_configurer.rb
236
- - lib/cfautoconfig/keyvalue/redis.rb
237
- - lib/cfautoconfig/keyvalue/redis_configurer.rb
238
- - lib/cfautoconfig/messaging/amqp.rb
239
- - lib/cfautoconfig/messaging/amqp_configurer.rb
240
- - lib/cfautoconfig/messaging/carrot.rb
241
- - lib/cfautoconfig/messaging/carrot_configurer.rb
242
- - lib/cfautoconfig/relational/mysql.rb
243
- - lib/cfautoconfig/relational/mysql_configurer.rb
244
- - lib/cfautoconfig/relational/postgres.rb
245
- - lib/cfautoconfig/relational/postgres_configurer.rb
246
- - lib/cfautoconfig/version.rb
247
- - lib/cfautoconfig.rb
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:
@@ -1,3 +0,0 @@
1
- require 'rubygems'
2
- require 'cfautoconfig/configurer'
3
- require 'cfautoconfig/version'