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.
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: