lib/yao/resources/compute_services.rb in yao-0.13.4 vs lib/yao/resources/compute_services.rb in yao-0.14.0
- old
+ new
@@ -17,18 +17,25 @@
def disabled?
status == 'disabled'
end
class << self
+ # @param host [String]
+ # @param binary [String]
+ # @return [Yao::Resources::ComputeServices]
def enable(host, binary)
params = {
"host" => host,
"binary" => binary,
}
put("enable", params)
end
+ # @param host [String]
+ # @param binary [String]
+ # @param resason [String]
+ # @return [Yao::Resources::ComputeServices]
def disable(host, binary, reason = nil)
params = {
"host" => host,
"binary" => binary,
}
@@ -53,6 +60,6 @@
resource_from_json(res.body)
end
end
end
-end
\ No newline at end of file
+end