sapoku 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sapoku.rb +7 -0
- metadata +1 -1
data/lib/sapoku.rb
CHANGED
@@ -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
|