lib/cfoundry/v1/client.rb in cfoundry-0.3.60 vs lib/cfoundry/v1/client.rb in cfoundry-0.3.61

- old
+ new

@@ -91,11 +91,11 @@ def info @base.info end # Retrieve available services. - def services + def services(depth = 0, query = {}) services = [] @base.system_services.each do |type, vendors| vendors.each do |vendor, providers| providers.each do |provider, versions| @@ -110,11 +110,11 @@ services end # Retrieve available runtimes. - def runtimes + def runtimes(depth = 1, query = {}) runtimes = [] @base.system_runtimes.each do |name, meta| runtimes << Runtime.new(name.to_s, meta[:description], meta[:debug_modes], @@ -127,11 +127,11 @@ def runtime_by_name(name) runtimes.find { |r| r.name == name } end # Retrieve available frameworks. - def frameworks + def frameworks(depth = 1, query = {}) fs = info[:frameworks] return unless fs frameworks = [] fs.each do |name, meta| @@ -150,10 +150,10 @@ def framework_by_name(name) frameworks.find { |f| f.name == name } end # Retrieve user list. Admin-only. - def users + def users(depth = 1, query = {}) @base.users.collect do |json| User.new( json[:email], self, { :email => json[:email],