sapoku 0.2.5 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/sapoku.rb +3 -0
  2. metadata +1 -1
@@ -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`
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sapoku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: '0.3'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: