stack_car 0.2.4 → 0.2.5
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 +2 -2
- data/lib/stack_car/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 358880428cb3b1bebab4e7f47072cd0a9096e5e0
|
4
|
+
data.tar.gz: 2c3d48913df2334d766f520ebd705680b84becc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b3732eeb9d5b2918a431ba0d790f8c51c639f5b56b132939d596fafa9f5b9eafa017f7f8f0ee8298eb271144aa80d44ac254b2451e9f7ef8077fc384a1118c6
|
7
|
+
data.tar.gz: bae1834cf48c9bfb441494ba2e72e5837fb6ea45222fb54d399cd47e973c53921b3ef6ec5562121134bf24bc387e13e81d6fe0c0ec086d9a1712446d71c10198
|
data/lib/stack_car/cli.rb
CHANGED
@@ -21,12 +21,12 @@ module StackCar
|
|
21
21
|
args << '-d' if !options[:foreground]
|
22
22
|
run("rm -rf tmp/pids/server.pid")
|
23
23
|
run("docker-compose up #{args.join(' ')} #{options[:service]}")
|
24
|
-
if
|
24
|
+
if options[:build]
|
25
25
|
@project_name = File.basename(File.expand_path('.'))
|
26
26
|
say 'copying bundle to local, you can start using the app now.'
|
27
27
|
run("docker cp #{@project_name}_#{options[:service]}_1:/bundle .") if options[:build]
|
28
|
-
run("docker-compose logs --tail --follow #{options[:service]}") if options[:logs]
|
29
28
|
end
|
29
|
+
run("docker-compose logs --tail 20 --follow ") if options[:logs]
|
30
30
|
end
|
31
31
|
|
32
32
|
method_option :service, default: '', type: :string, aliases: '-s'
|
data/lib/stack_car/version.rb
CHANGED