Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Prepare gems for release

- Update LICENSE, NOTICE, and README

- Restrict auto-config's cf-runtime dependency to version 0.0.1

Change-Id: I4989ab35f268b7d791451893e8e4a460fb836aa3
  • Loading branch information...
commit e81b5a3fcf2a1dd24e2bfa8bdfc4818247120358 1 parent 57a80e5
Jennifer Hickey authored
12,721 auto-reconfiguration/LICENSE
View
12,717 additions, 4 deletions not shown
6 auto-reconfiguration/NOTICE
View
@@ -1,5 +1,5 @@
-Cloud Foundry
-Copyright (c) [2009-2011] VMware, Inc. All Rights Reserved.
+Cloud Foundry 2012.02.03 Beta
+Copyright (c) [2009-2012] VMware, Inc. All Rights Reserved.
This product is licensed to you under the Apache License, Version 2.0 (the "License").
You may not use this product except in compliance with the License.
@@ -7,4 +7,4 @@ You may not use this product except in compliance with the License.
This product includes a number of subcomponents with
separate copyright notices and license terms. Your use of these
subcomponents is subject to the terms and conditions of the
-subcomponent's license, as noted in the LICENSE file.
+subcomponent's license, as noted in the LICENSE file.
2  auto-reconfiguration/cf-autoconfig.gemspec
View
@@ -15,7 +15,7 @@ spec = Gem::Specification.new do |s|
s.extra_rdoc_files = ["LICENSE"]
s.rdoc_options = ["-N", "--tab-width=2", "--exclude='cf-autoconfig.gemspec|spec'"]
- s.add_dependency "cf-runtime"
+ s.add_dependency "cf-runtime", "= 0.0.1"
s.add_development_dependency "redis", "~> 2.0"
s.add_development_dependency "amqp", "~> 0.8"
12,721 cfruntime/LICENSE
View
12,717 additions, 4 deletions not shown
6 cfruntime/NOTICE
View
@@ -1,5 +1,5 @@
-Cloud Foundry
-Copyright (c) [2009-2011] VMware, Inc. All Rights Reserved.
+Cloud Foundry 2012.02.03 Beta
+Copyright (c) [2009-2012] VMware, Inc. All Rights Reserved.
This product is licensed to you under the Apache License, Version 2.0 (the "License").
You may not use this product except in compliance with the License.
@@ -7,4 +7,4 @@ You may not use this product except in compliance with the License.
This product includes a number of subcomponents with
separate copyright notices and license terms. Your use of these
subcomponents is subject to the terms and conditions of the
-subcomponent's license, as noted in the LICENSE file.
+subcomponent's license, as noted in the LICENSE file.
28 cfruntime/README.md
View
@@ -0,0 +1,28 @@
+#cf-runtime
+
+A library for interacting with Cloud Foundry services. Provides methods for obtaining pre-configured connection objects and connection properties.
+
+_Copyright (c) 2011-2012 VMware, Inc. Please see the LICENSE file._
+
+require 'cfruntime'
+
+#Connect to mysql service named 'mysql-test'
+client = CFRuntime::Mysql2Client.create_from_svc 'mysql-test'
+
+#Connect to a single service of type MongoDB
+connection = CFRuntime::MongoClient.create
+db = connection.db
+
+#Obtain connection properties for 'myservice'
+if CFRuntime::CloudApp.running_in_cloud?
+ service_props = CFRuntime::CloudApp.service_props 'myservice'
+end
+
+#Obtain connection properties for single service of type MySQL
+service_props = CFRuntime::CloudApp.service_props 'mysql'
+
+#Other handy methods
+CFRuntime::CloudApp.host
+CFRuntime::CloudApp.port
+CFRuntime::CloudApp.service_names
+CFRuntime::CloudApp.service_names_of_type 'mysql'
4 cfruntime/cf-runtime.gemspec
View
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
s.description = s.summary = "Cloud Foundry Runtime Library"
s.platform = Gem::Platform::RUBY
- s.extra_rdoc_files = ["LICENSE"]
+ s.extra_rdoc_files = ["README.md", "LICENSE"]
s.rdoc_options = ["-N", "--tab-width=2", "--exclude='cf-runtime.gemspec|spec'"]
s.add_dependency "crack", "~> 0.3.1"
@@ -29,5 +29,5 @@ Gem::Specification.new do |s|
s.add_development_dependency "ci_reporter", "~> 1.6.5"
s.require_path = 'lib'
- s.files = %w(LICENSE) + Dir.glob("{lib}/**/*")
+ s.files = %w(LICENSE README.md) + Dir.glob("{lib}/**/*")
end
Please sign in to comment.
Something went wrong with that request. Please try again.