sapoku 0.2.5 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sapoku.rb +3 -0
- metadata +1 -1
data/lib/sapoku.rb
CHANGED
@@ -50,7 +50,10 @@ class Tadpole
|
|
50
50
|
|
51
51
|
# wipes a container from HDD and redis
|
52
52
|
def destroy
|
53
|
+
# delete the hash from redis
|
53
54
|
$redis.del(@app_name)
|
55
|
+
# add the ip back to our free ips list
|
56
|
+
$redis.sadd("sapoku:freeips", @container_ip)
|
54
57
|
`sudo lxc-stop -n #{@app_name}`
|
55
58
|
`sudo lxc-destroy -n #{@app_name}`
|
56
59
|
`sudo rm /opt/nginx/conf/containers/#{@app_name}.conf`
|