lib/zeployment.rb in zeployment-0.1.0 vs lib/zeployment.rb in zeployment-0.1.1

- old
+ new

@@ -50,6 +50,14 @@ def self.get_ip_address_of_ec2_from_id_command (instance_id) return "aws ec2 describe-instances --instance-id #{instance_id}" end + def self.deregister_instance_from_load_balancer (name_of_load_balancer, instance_id) + JSON.parse(`aws elb deregister-instances-from-load-balancer --load-balancer-name #{name_of_load_balancer} --instances #{instance_id}`) + end + + def self.register_instance_with_load_balancer (name_of_load_balancer, instance_id) + JSON.parse(`aws elb register-instances-with-load-balancer --load-balancer-name #{name_of_load_balancer} --instances #{instance_id}`) + end + end