sapoku 0.1.5 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- 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
|