sapoku 0.1.5 → 0.1.8
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 +8 -0
- metadata +1 -1
data/lib/sapoku.rb
CHANGED
@@ -53,6 +53,14 @@ class Tadpole
|
|
53
53
|
$redis.del(@app_name)
|
54
54
|
`sudo lxc-stop -n #{@app_name}`
|
55
55
|
`sudo lxc-destroy -n #{@app_name}`
|
56
|
+
`sudo rm /opt/nginx/conf/containers/#{@app_name}.conf`
|
57
|
+
end
|
58
|
+
|
59
|
+
# returns true if the instance is running
|
60
|
+
def running?
|
61
|
+
$regex = /RUNNING/
|
62
|
+
return false if $regex.match(`sudo lxc-info -n #{@app_name}`).nil?
|
63
|
+
return true
|
56
64
|
end
|
57
65
|
|
58
66
|
# actually creates and initializes the container
|