small-ops 0.0.10 → 0.0.11

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/bin/fige +2 -8
  2. metadata +1 -1
data/bin/fige CHANGED
@@ -29,14 +29,8 @@ apps.each {|k|
29
29
  yml[k]['name'] = yml[k]['image'].gsub(/[^\/]+\//,'')
30
30
  end
31
31
 
32
- json = `docker inspect #{yml[k]['name']} 2> /dev/null`
33
- inspect = JSON.parse(json)
34
- if inspect && inspect[0] && inspect[0]['State']
35
- if inspect[0]["State"]['Running'] then
36
- puts `docker stop #{inspect[0]["ID"]}`
37
- end
38
- puts `docker rm #{inspect[0]["ID"]}`
39
- end
32
+ puts `docker stop #{yml[k]['name']} 2> /dev/null`
33
+ puts `docker rm #{yml[k]['name']} 2> /dev/null`
40
34
 
41
35
  if !yml[k].has_key? "environment" then
42
36
  yml[k]['environment'] = {}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: small-ops
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: