cfoundry 0.3.0 → 0.3.1
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/lib/cfoundry/v1/client.rb
CHANGED
@@ -66,7 +66,8 @@ module CFoundry::V1
|
|
66
66
|
@base.system_services.each do |type, vendors|
|
67
67
|
vendors.each do |vendor, versions|
|
68
68
|
versions.each do |num, meta|
|
69
|
-
services <<
|
69
|
+
services <<
|
70
|
+
Service.new(vendor.to_s, num, meta[:description], type)
|
70
71
|
end
|
71
72
|
end
|
72
73
|
end
|
@@ -79,7 +80,8 @@ module CFoundry::V1
|
|
79
80
|
runtimes = []
|
80
81
|
|
81
82
|
@base.system_runtimes.each do |name, meta|
|
82
|
-
runtimes <<
|
83
|
+
runtimes <<
|
84
|
+
Runtime.new(name.to_s, meta[:version], meta[:debug_modes])
|
83
85
|
end
|
84
86
|
|
85
87
|
runtimes
|
@@ -189,7 +191,7 @@ module CFoundry::V1
|
|
189
191
|
# Retrieve all of the current user's services.
|
190
192
|
def service_instances
|
191
193
|
@base.services.collect do |json|
|
192
|
-
|
194
|
+
ServiceInstance.new(json[:name], self, json)
|
193
195
|
end
|
194
196
|
end
|
195
197
|
|
data/lib/cfoundry/v1/runtime.rb
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
module CFoundry::V1
|
2
2
|
class Runtime
|
3
|
-
attr_accessor :name, :description
|
3
|
+
attr_accessor :name, :description, :debug_modes
|
4
4
|
|
5
|
-
def initialize(name, description = nil)
|
5
|
+
def initialize(name, description = nil, debug_modes = nil)
|
6
6
|
@name = name
|
7
7
|
@description = description
|
8
|
+
@debug_modes = debug_modes
|
8
9
|
end
|
9
10
|
|
10
11
|
def apps
|
data/lib/cfoundry/v1/service.rb
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
module CFoundry::V1
|
2
2
|
class Service
|
3
|
-
attr_accessor :label, :description, :
|
3
|
+
attr_accessor :label, :version, :description, :type
|
4
4
|
|
5
|
-
def initialize(label, description = nil,
|
5
|
+
def initialize(label, version = nil, description = nil, type = nil)
|
6
6
|
@label = label
|
7
7
|
@description = description
|
8
8
|
@version = version
|
9
|
+
@type = nil
|
9
10
|
end
|
10
11
|
|
11
12
|
def provider
|
data/lib/cfoundry/v2/client.rb
CHANGED
data/lib/cfoundry/version.rb
CHANGED
metadata
CHANGED