lib/yao/resources/server.rb in yao-0.3.5 vs lib/yao/resources/server.rb in yao-0.3.6
- old
+ new
@@ -42,9 +42,17 @@
action(id,"resize" => { "flavorRef" => flavor_id })
end
class << self
alias :stop :shutoff
+
+ def list_detail(query={})
+ return_resources(
+ resources_from_json(
+ GET([resources_path, "detail"].join("/"), query).body
+ )
+ )
+ end
end
extend MetadataAvailable
extend Action
end