sapoku 0.1.5 → 0.1.8

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 +8 -0
  2. 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
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.5
4
+ version: 0.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: