lib/cfoundry/v2/base.rb in cfoundry-0.3.28 vs lib/cfoundry/v2/base.rb in cfoundry-0.3.29
- old
+ new
@@ -103,9 +103,17 @@
def files(guid, instance, *path)
get("v2", "apps", guid, "instances", instance, "files", *path)
end
alias :file :files
+ def instances(guid)
+ get("v2", "apps", guid, "instances", nil => :json)
+ end
+
+ def stats(guid)
+ get("v2", "apps", guid, "stats", nil => :json)
+ end
+
def params_from(args)
depth, query = args
depth ||= 1