lib/yao/resources/server.rb in yao-0.4.3 vs lib/yao/resources/server.rb in yao-0.5.0

- old
+ new

@@ -40,9 +40,17 @@ def self.resize(id, flavor_id) action(id,"resize" => { "flavorRef" => flavor_id }) end + def self.add_security_group(id, sg_name) + action(id, {"addSecurityGroup": {"name": sg_name}}) + end + + def self.remove_security_group(id, sg_name) + action(id, {"removeSecurityGroup": {"name": sg_name}}) + end + class << self alias :stop :shutoff def list_detail(query={}) return_resources(