dru 0.4.0 → 0.5.0
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/Gemfile.lock +1 -1
- data/lib/dru/cli.rb +12 -0
- data/lib/dru/commands/down.rb +13 -0
- data/lib/dru/templates/down/.gitkeep +1 -0
- data/lib/dru/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 485f31402b0f5534b1431e7487c60a96cee6513725939a10aeb71db8c70c99d3
|
4
|
+
data.tar.gz: d07284126c54faa76c8a33fb2fe70f63ad339887364c953ef786b18daeb5da49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c52b6c7fca2ffd197b85b97fa20075e0dbb49b17dc68a6fefa667f731959638549091b2558f6f3782d06d8ba768d0ea3471c20dc8fe78145867511557f23cc0
|
7
|
+
data.tar.gz: 6502c1205b07392a6e6b5d0d87e797a7ae75e18c62f1e937972dfbc8658540f10aad5abafa5157851dda29319800ae572e0cc75d09c5ac2e952139f7e35f5cba
|
data/Gemfile.lock
CHANGED
data/lib/dru/cli.rb
CHANGED
@@ -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 @@
|
|
1
|
+
#
|
data/lib/dru/version.rb
CHANGED
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
|
+
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
|