lib/cfoundry/v1/client.rb in cfoundry-0.3.33 vs lib/cfoundry/v1/client.rb in cfoundry-0.3.34
- old
+ new
@@ -93,10 +93,14 @@
end
runtimes
end
+ def runtime_by_name(name)
+ runtimes.find { |r| r.name == name }
+ end
+
# Retrieve available frameworks.
def frameworks
fs = info[:frameworks]
return unless fs
@@ -107,12 +111,16 @@
end
frameworks <<
Framework.new(name.to_s, nil, runtimes, meta[:detection])
end
+
frameworks
end
+ def framework_by_name(name)
+ frameworks.find { |f| f.name == name }
+ end
# Retrieve user list. Admin-only.
def users
@base.users.collect do |json|
User.new(