dru 0.4.0 → 0.5.0

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
  SHA256:
3
- metadata.gz: def2420df9cee2ed5c5a4a33c606ad27ba20fd72a84c51a93b10aa8ad8b662c8
4
- data.tar.gz: c9be5d2ddb85b0bfb1ab51d41632441a1918a079ba38adfcec42bb5736273e79
3
+ metadata.gz: 485f31402b0f5534b1431e7487c60a96cee6513725939a10aeb71db8c70c99d3
4
+ data.tar.gz: d07284126c54faa76c8a33fb2fe70f63ad339887364c953ef786b18daeb5da49
5
5
  SHA512:
6
- metadata.gz: 4ae0153d0c05c59cfc36f3dd22fdc13961fb05e4fa3c5846dd919325a1c3df3f1e7363c35450d5404d2845839239789f098e1d6501cb5676baf7ebe93212e15a
7
- data.tar.gz: abf9ce5c427623e592469666d8ffcf8b3d15c22a44c9518d5745dee9b01c902775ae169cab9934185e5b4e2c1349243db60c2dd0200dd10e828218e8dcd679d4
6
+ metadata.gz: 0c52b6c7fca2ffd197b85b97fa20075e0dbb49b17dc68a6fefa667f731959638549091b2558f6f3782d06d8ba768d0ea3471c20dc8fe78145867511557f23cc0
7
+ data.tar.gz: 6502c1205b07392a6e6b5d0d87e797a7ae75e18c62f1e937972dfbc8658540f10aad5abafa5157851dda29319800ae572e0cc75d09c5ac2e952139f7e35f5cba
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dru (0.4.0)
4
+ dru (0.5.0)
5
5
  pastel (~> 0.7.2)
6
6
  thor (~> 0.20.0)
7
7
  tty-color (~> 0.4.2)
@@ -18,6 +18,18 @@ module Dru
18
18
  end
19
19
  map %w(--version -v) => :version
20
20
 
21
+ desc 'down', 'Stops containers and removes containers, networks, volumes, and images created by `up`.'
22
+ method_option :help, aliases: '-h', type: :boolean,
23
+ desc: 'Display usage information'
24
+ def down(*)
25
+ if options[:help]
26
+ invoke :help, ['down']
27
+ else
28
+ require_relative 'commands/down'
29
+ Dru::Commands::Down.new.execute
30
+ end
31
+ end
32
+
21
33
  desc 'attach', 'Attach local standard input, output, and error streams to a running container'
22
34
  method_option :help, aliases: '-h', type: :boolean,
23
35
  desc: 'Display usage information'
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../command'
4
+
5
+ module Dru
6
+ module Commands
7
+ class Down < Dru::Command
8
+ def execute(input: $stdin, output: $stdout)
9
+ run_docker_compose_command('down')
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module Dru
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dru
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Rimondi
@@ -365,6 +365,7 @@ files:
365
365
  - lib/dru/command.rb
366
366
  - lib/dru/commands/.gitkeep
367
367
  - lib/dru/commands/attach.rb
368
+ - lib/dru/commands/down.rb
368
369
  - lib/dru/commands/exec.rb
369
370
  - lib/dru/commands/runner.rb
370
371
  - lib/dru/commands/up.rb
@@ -372,6 +373,7 @@ files:
372
373
  - lib/dru/container_command.rb
373
374
  - lib/dru/templates/.gitkeep
374
375
  - lib/dru/templates/attach/.gitkeep
376
+ - lib/dru/templates/down/.gitkeep
375
377
  - lib/dru/templates/exec/.gitkeep
376
378
  - lib/dru/templates/runner/.gitkeep
377
379
  - lib/dru/templates/up/.gitkeep