sapoku 0.2.5 → 0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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`
|