dogids-cli 0.0.11 → 0.0.12
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.
- checksums.yaml +4 -4
- data/lib/dogids/deploy/worker.rb +13 -0
- data/lib/dogids/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0ac2a7b204754cb8d3b3023280f5ad3e80a1f78
|
4
|
+
data.tar.gz: f270fbef8f789c6d3124807493f1e2a31138e2a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 405406492dad5cf2b36b30898815a89f7f06ead99d83337f80946ba8151ca4dcc328e6445c53c9f4011ff17532cd33499b12bfbeddf62d63a70e88a54d6a0c0a
|
7
|
+
data.tar.gz: a21ebfc7c4e030d955c16063d1286de8d8cdabbfe447ea1d21aab03202da8f1ac42bbf446c5f22eb0b3f4c2703e45d6af042a0f2b0a94e3a0e086bacd2c2ff1d
|
data/lib/dogids/deploy/worker.rb
CHANGED
@@ -31,6 +31,11 @@ module Dogids
|
|
31
31
|
print_command(data)
|
32
32
|
end
|
33
33
|
end
|
34
|
+
|
35
|
+
print_heading("Cleaning up")
|
36
|
+
ssh.exec!(clean_up_command) do |_channel, _stream, data|
|
37
|
+
print_command(data)
|
38
|
+
end
|
34
39
|
end
|
35
40
|
|
36
41
|
print_heading("Done.")
|
@@ -39,6 +44,14 @@ module Dogids
|
|
39
44
|
|
40
45
|
private
|
41
46
|
|
47
|
+
def clean_up_command
|
48
|
+
commands = []
|
49
|
+
commands << "sudo find /var/lib/docker/ -type f -name '*.sql' -delete"
|
50
|
+
commands << "sudo find /var/lib/docker/ -type f -name '*.log' -delete"
|
51
|
+
commands << "sudo docker ps -a -f status=exited -q | xargs -r sudo docker rm -v"
|
52
|
+
commands.join(" && ")
|
53
|
+
end
|
54
|
+
|
42
55
|
def worker_build_command
|
43
56
|
commands = []
|
44
57
|
commands << "cd /home/dogids/apps/dogids-backgrounder"
|
data/lib/dogids/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dogids-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Pattison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
87
|
rubyforge_project:
|
88
|
-
rubygems_version: 2.4.5
|
88
|
+
rubygems_version: 2.4.5.1
|
89
89
|
signing_key:
|
90
90
|
specification_version: 4
|
91
91
|
summary: Command line tool for dogIDs tasks
|