stack_car 0.17.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stack_car/cli.rb +4 -6
- data/lib/stack_car/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6ed8d5c6219471376a05ccc900ef285e6dd0409c4b6954a115282280fdbfb38
|
4
|
+
data.tar.gz: f87e0c76404381eda7bcf77e08ea24a937f197556cb77ad0e677540db09eba08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 348b12ba0d514385f5b1b1263581e987aae3e2714c8a61aa888305a69fff5ce18b1a83906f04a349054dd4dd275a7df9d7ccbc005ecf3b03be0f0769ab1f25e0
|
7
|
+
data.tar.gz: c83f60d3aadd3b9e8aae2bd2fec26ed27759fdf4a8be6a1ef088f1e76eb841625cc00ce2982aab1f1c6261579f06a06eafe303953092aa90125053da970a3c7e
|
data/lib/stack_car/cli.rb
CHANGED
@@ -18,11 +18,11 @@ module StackCar
|
|
18
18
|
method_option :service, default: 'web', type: :string, aliases: '-s'
|
19
19
|
method_option :build, default: false, type: :boolean, aliases: '-b'
|
20
20
|
method_option :logs, default: true, type: :boolean
|
21
|
-
desc "up", "starts docker compose with rebuild
|
21
|
+
desc "up", "starts docker compose with rebuild, defaults to web"
|
22
22
|
def up
|
23
23
|
setup
|
24
24
|
ensure_development_env
|
25
|
-
args = [
|
25
|
+
args = []
|
26
26
|
args << '--build' if options[:build]
|
27
27
|
if options[:build]
|
28
28
|
run("#{dotenv} docker compose pull #{options[:service]}")
|
@@ -42,7 +42,6 @@ module StackCar
|
|
42
42
|
|
43
43
|
method_option :volumes, aliases: '-v'
|
44
44
|
method_option :rmi
|
45
|
-
method_option :'remove-orphans'
|
46
45
|
method_option :service, aliases: '-s'
|
47
46
|
method_option :timeout, aliases: '-t'
|
48
47
|
method_option :all, aliases: '-a'
|
@@ -75,13 +74,12 @@ module StackCar
|
|
75
74
|
|
76
75
|
args = []
|
77
76
|
if options[:all]
|
78
|
-
prompt_run_confirmation('--all will remove all containers, volumes, networks, local images
|
77
|
+
prompt_run_confirmation('--all will remove all containers, volumes, networks, and local images. Continue?')
|
79
78
|
|
80
|
-
args = %w[--volumes --rmi=local
|
79
|
+
args = %w[--volumes --rmi=local]
|
81
80
|
else
|
82
81
|
args << '--volumes' if options[:volumes]
|
83
82
|
args << '--rmi=local' if options[:rmi]
|
84
|
-
args << '--remove-orphans' if options[:'remove-orphans']
|
85
83
|
args << '--timeout' if options[:timeout]
|
86
84
|
end
|
87
85
|
|
data/lib/stack_car/version.rb
CHANGED