cf-runtime 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +2 -2
- data/lib/cf-runtime.rb +30 -0
- data/lib/{cfruntime → cf-runtime}/amqp.rb +2 -2
- data/lib/{cfruntime → cf-runtime}/aws_s3.rb +2 -2
- data/lib/{cfruntime → cf-runtime}/carrot.rb +2 -2
- data/lib/{cfruntime → cf-runtime}/mongodb.rb +2 -2
- data/lib/{cfruntime → cf-runtime}/mysql.rb +2 -2
- data/lib/{cfruntime → cf-runtime}/okjson.rb +0 -0
- data/lib/cf-runtime/parser.rb +7 -0
- data/lib/{cfruntime → cf-runtime}/parser/blob_parser.rb +0 -0
- data/lib/{cfruntime → cf-runtime}/parser/default_parser.rb +0 -0
- data/lib/{cfruntime → cf-runtime}/parser/mongodb_parser.rb +0 -0
- data/lib/{cfruntime → cf-runtime}/parser/mysql_parser.rb +0 -0
- data/lib/{cfruntime → cf-runtime}/parser/postgresql_parser.rb +0 -0
- data/lib/{cfruntime → cf-runtime}/parser/rabbitmq_parser.rb +0 -0
- data/lib/{cfruntime → cf-runtime}/parser/redis_parser.rb +0 -0
- data/lib/{cfruntime → cf-runtime}/postgres.rb +2 -2
- data/lib/{cfruntime → cf-runtime}/properties.rb +3 -3
- data/lib/{cfruntime → cf-runtime}/redis.rb +2 -2
- data/lib/{cfruntime → cf-runtime}/version.rb +1 -1
- metadata +22 -22
- data/lib/cfruntime.rb +0 -30
- data/lib/cfruntime/parser.rb +0 -7
data/README.md
CHANGED
@@ -4,7 +4,7 @@ A library for interacting with Cloud Foundry services. Provides methods for obt
|
|
4
4
|
|
5
5
|
_Copyright (c) 2011-2012 VMware, Inc. Please see the LICENSE file._
|
6
6
|
|
7
|
-
require '
|
7
|
+
require 'cf-runtime'
|
8
8
|
|
9
9
|
#Connect to mysql service named 'mysql-test'
|
10
10
|
client = CFRuntime::Mysql2Client.create_from_svc 'mysql-test'
|
@@ -25,4 +25,4 @@ service_props = CFRuntime::CloudApp.service_props 'mysql'
|
|
25
25
|
CFRuntime::CloudApp.host
|
26
26
|
CFRuntime::CloudApp.port
|
27
27
|
CFRuntime::CloudApp.service_names
|
28
|
-
CFRuntime::CloudApp.service_names_of_type 'mysql'
|
28
|
+
CFRuntime::CloudApp.service_names_of_type 'mysql'
|
data/lib/cf-runtime.rb
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
begin
|
2
|
+
require 'cf-runtime/amqp'
|
3
|
+
rescue LoadError
|
4
|
+
end
|
5
|
+
begin
|
6
|
+
require 'cf-runtime/carrot'
|
7
|
+
rescue LoadError
|
8
|
+
end
|
9
|
+
begin
|
10
|
+
require 'cf-runtime/mongodb'
|
11
|
+
rescue LoadError
|
12
|
+
end
|
13
|
+
begin
|
14
|
+
require 'cf-runtime/mysql'
|
15
|
+
rescue LoadError
|
16
|
+
end
|
17
|
+
begin
|
18
|
+
require 'cf-runtime/postgres'
|
19
|
+
rescue LoadError
|
20
|
+
end
|
21
|
+
begin
|
22
|
+
require 'cf-runtime/redis'
|
23
|
+
rescue LoadError
|
24
|
+
end
|
25
|
+
begin
|
26
|
+
require 'cf-runtime/aws_s3'
|
27
|
+
rescue LoadError
|
28
|
+
end
|
29
|
+
require 'cf-runtime/properties'
|
30
|
+
require 'cf-runtime/version'
|
File without changes
|
@@ -0,0 +1,7 @@
|
|
1
|
+
require "cf-runtime/parser/blob_parser"
|
2
|
+
require "cf-runtime/parser/default_parser"
|
3
|
+
require "cf-runtime/parser/mongodb_parser"
|
4
|
+
require "cf-runtime/parser/mysql_parser"
|
5
|
+
require "cf-runtime/parser/postgresql_parser"
|
6
|
+
require "cf-runtime/parser/rabbitmq_parser"
|
7
|
+
require "cf-runtime/parser/redis_parser"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cf-runtime
|
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:
|
12
|
+
date: 2013-02-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: redis
|
@@ -229,25 +229,25 @@ extra_rdoc_files:
|
|
229
229
|
files:
|
230
230
|
- LICENSE
|
231
231
|
- README.md
|
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/
|
248
|
-
- lib/
|
249
|
-
- lib/
|
250
|
-
- lib/
|
232
|
+
- lib/cf-runtime/amqp.rb
|
233
|
+
- lib/cf-runtime/aws_s3.rb
|
234
|
+
- lib/cf-runtime/carrot.rb
|
235
|
+
- lib/cf-runtime/mongodb.rb
|
236
|
+
- lib/cf-runtime/mysql.rb
|
237
|
+
- lib/cf-runtime/okjson.rb
|
238
|
+
- lib/cf-runtime/parser/blob_parser.rb
|
239
|
+
- lib/cf-runtime/parser/default_parser.rb
|
240
|
+
- lib/cf-runtime/parser/mongodb_parser.rb
|
241
|
+
- lib/cf-runtime/parser/mysql_parser.rb
|
242
|
+
- lib/cf-runtime/parser/postgresql_parser.rb
|
243
|
+
- lib/cf-runtime/parser/rabbitmq_parser.rb
|
244
|
+
- lib/cf-runtime/parser/redis_parser.rb
|
245
|
+
- lib/cf-runtime/parser.rb
|
246
|
+
- lib/cf-runtime/postgres.rb
|
247
|
+
- lib/cf-runtime/properties.rb
|
248
|
+
- lib/cf-runtime/redis.rb
|
249
|
+
- lib/cf-runtime/version.rb
|
250
|
+
- lib/cf-runtime.rb
|
251
251
|
homepage: http://vmware.com
|
252
252
|
licenses: []
|
253
253
|
post_install_message:
|
@@ -271,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
271
271
|
version: '0'
|
272
272
|
requirements: []
|
273
273
|
rubyforge_project:
|
274
|
-
rubygems_version: 1.8.
|
274
|
+
rubygems_version: 1.8.24
|
275
275
|
signing_key:
|
276
276
|
specification_version: 3
|
277
277
|
summary: Cloud Foundry Runtime Library
|
data/lib/cfruntime.rb
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
require 'cfruntime/amqp'
|
3
|
-
rescue LoadError
|
4
|
-
end
|
5
|
-
begin
|
6
|
-
require 'cfruntime/carrot'
|
7
|
-
rescue LoadError
|
8
|
-
end
|
9
|
-
begin
|
10
|
-
require 'cfruntime/mongodb'
|
11
|
-
rescue LoadError
|
12
|
-
end
|
13
|
-
begin
|
14
|
-
require 'cfruntime/mysql'
|
15
|
-
rescue LoadError
|
16
|
-
end
|
17
|
-
begin
|
18
|
-
require 'cfruntime/postgres'
|
19
|
-
rescue LoadError
|
20
|
-
end
|
21
|
-
begin
|
22
|
-
require 'cfruntime/redis'
|
23
|
-
rescue LoadError
|
24
|
-
end
|
25
|
-
begin
|
26
|
-
require 'cfruntime/aws_s3'
|
27
|
-
rescue LoadError
|
28
|
-
end
|
29
|
-
require 'cfruntime/properties'
|
30
|
-
require 'cfruntime/version'
|
data/lib/cfruntime/parser.rb
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
require "cfruntime/parser/blob_parser"
|
2
|
-
require "cfruntime/parser/default_parser"
|
3
|
-
require "cfruntime/parser/mongodb_parser"
|
4
|
-
require "cfruntime/parser/mysql_parser"
|
5
|
-
require "cfruntime/parser/postgresql_parser"
|
6
|
-
require "cfruntime/parser/rabbitmq_parser"
|
7
|
-
require "cfruntime/parser/redis_parser"
|