sapoku 0.1.3 → 0.1.5
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 +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
|