sapoku 0.1.3 → 0.1.5

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 +7 -0
  2. metadata +1 -1
@@ -48,6 +48,13 @@ class Tadpole
48
48
  $redis.hset(@app_name, "stack", @stack)
49
49
  end
50
50
 
51
+ # wipes a container from HDD and redis
52
+ def destroy
53
+ $redis.del(@app_name)
54
+ `sudo lxc-stop -n #{@app_name}`
55
+ `sudo lxc-destroy -n #{@app_name}`
56
+ end
57
+
51
58
  # actually creates and initializes the container
52
59
  # returns the actual raw console output of the generated commands
53
60
  def bootstrap
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.1.3
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: