dogids-cli 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4749616eb994388838fee338193debb7e9a601d2
4
- data.tar.gz: 06ded7321d6adf827fcf2f49b6474c76e6f05074
3
+ metadata.gz: d0ac2a7b204754cb8d3b3023280f5ad3e80a1f78
4
+ data.tar.gz: f270fbef8f789c6d3124807493f1e2a31138e2a2
5
5
  SHA512:
6
- metadata.gz: ba6a09203e14261de57525aaf14196375a9a570ff0b85662871b396b27bc0f4ef0c8d4706e1ab58ece9fcc87ec8c4e0b33d508f6b81af8696e4773103c120cf7
7
- data.tar.gz: 8d5430255079c821b3fbe4a2cf2fc7c42ab0f6cc22b235154539fae695d4f277ec56d7953455645e0ac74ab455cae4c6a0a0c6d041c37422dbbe2f16864ce94c
6
+ metadata.gz: 405406492dad5cf2b36b30898815a89f7f06ead99d83337f80946ba8151ca4dcc328e6445c53c9f4011ff17532cd33499b12bfbeddf62d63a70e88a54d6a0c0a
7
+ data.tar.gz: a21ebfc7c4e030d955c16063d1286de8d8cdabbfe447ea1d21aab03202da8f1ac42bbf446c5f22eb0b3f4c2703e45d6af042a0f2b0a94e3a0e086bacd2c2ff1d
@@ -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"
@@ -3,7 +3,7 @@ require "open-uri"
3
3
  require "thor"
4
4
 
5
5
  module Dogids
6
- VERSION = "0.0.11"
6
+ VERSION = "0.0.12"
7
7
 
8
8
  class Cli < Thor
9
9
  desc "update", "Update dogids-cli to latest version"
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.11
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-08-10 00:00:00.000000000 Z
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