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.
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: