lib/yao/resources/compute_services.rb in yao-0.8.0 vs lib/yao/resources/compute_services.rb in yao-0.9.0

- old
+ new

@@ -4,9 +4,21 @@ self.service = "compute" self.resource_name = "service" self.resources_name = "os-services" + # return true if ComputeServices is enabled + # @return [Bool] + def enabled? + status == 'enabled' + end + + # return true if ComputeServices is disabled + # @return [Bool] + def disabled? + status == 'disabled' + end + class << self def enable(host, binary) params = { "host" => host, "binary" => binary, \ No newline at end of file