docker_core 0.0.47 → 0.0.48
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/lib/docker_core.rb +7 -13
- 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: dbdb1ce3da5303a7ab1182c8b340756c9f847c3c7b120a85bb57baa314fa8e1d
|
4
|
+
data.tar.gz: a1e34024c6a29dff0de13505a239cfe7def44b81297e505aff554b14e520a9e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 070edfeb7ddf10ac4b33ba2b5f0202f4c620459a2ee7474be41f3baaed047a1439219009902deab0bba4153af0f190d2f517e5f781a6774e2fe79f93d7e26094
|
7
|
+
data.tar.gz: a98e9e13ce85dbbc58e3afb0b08117194bf34df82ff69710b4b97abfb902d733a74931c38a65d257bd647d3d1410d50a129d2dfccd0f2acd34855c6851f64138
|
data/lib/docker_core.rb
CHANGED
@@ -389,27 +389,21 @@ module DockerCore
|
|
389
389
|
end
|
390
390
|
|
391
391
|
# @param [Array] arguments
|
392
|
+
# @param [Boolean] background
|
392
393
|
# @param [Boolean, String] sudo
|
393
|
-
|
394
|
+
# @param [Boolean] echo
|
395
|
+
def self.execute(*arguments, background: false, sudo: SUDO, echo: true)
|
394
396
|
command = self.command(*arguments, sudo: sudo)
|
395
397
|
|
396
398
|
if echo
|
397
399
|
Color.echo("= #{command}", Color::CYAN)
|
398
400
|
end
|
399
401
|
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
# @param [Boolean, String] sudo
|
405
|
-
def self.spawn(*arguments, sudo: SUDO, echo: true)
|
406
|
-
command = self.command(*arguments, sudo: sudo)
|
407
|
-
|
408
|
-
if echo
|
409
|
-
Color.echo("= #{command}", Color::CYAN)
|
402
|
+
if background
|
403
|
+
return spawn(command)
|
404
|
+
else
|
405
|
+
return exec(command)
|
410
406
|
end
|
411
|
-
|
412
|
-
return spawn(command)
|
413
407
|
end
|
414
408
|
|
415
409
|
# @param [String] title
|