dg 0.5.7 → 0.5.8
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/dg/docker.rb +3 -1
- data/lib/dg/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9e5b539bf9ccacfbddf510d4897e2c6aca744897
|
|
4
|
+
data.tar.gz: 7c70e4fd89b82775a5cb069bf68eb61d4340b033
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5b268cdc023ad135656dc77292b7d2e66d6ddc483ef0b38f6d0bf2fbb388d10fd08e763527505a27cbb03a7f6eadd247db6b54827c8bcf922b6bd29b5674aee5
|
|
7
|
+
data.tar.gz: f1388d3ca9eca8a68aa0593ce5916b98e1048d53f66b738b10f2cb69fe067bc65f8b101630726af5a2631020d592c337343f07fbb8e5be4ed8ea981df994b0e1
|
data/lib/dg/docker.rb
CHANGED
|
@@ -55,7 +55,7 @@ module DG
|
|
|
55
55
|
`git symbolic-ref --short -q HEAD`.strip
|
|
56
56
|
|
|
57
57
|
run_with_output(
|
|
58
|
-
"docker run --entrypoint=/bin/
|
|
58
|
+
"docker run --entrypoint=/bin/bash #{git_image_name} /u/app/deploy-to.sh", capture = true
|
|
59
59
|
).strip.split(',')
|
|
60
60
|
end
|
|
61
61
|
end
|
|
@@ -86,6 +86,8 @@ module DG
|
|
|
86
86
|
sudo_command = SUDO ? "sudo -E bash -c '#{command}'" : command
|
|
87
87
|
puts "Running `#{sudo_command}` in #{Dir.pwd}"
|
|
88
88
|
if capture
|
|
89
|
+
# TODO: Replace this with a combined function below, so
|
|
90
|
+
# that non-zero exit codes are handled correctly
|
|
89
91
|
return `#{sudo_command}`
|
|
90
92
|
else
|
|
91
93
|
begin
|
data/lib/dg/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dg
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Malet
|
|
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
56
56
|
version: '0'
|
|
57
57
|
requirements: []
|
|
58
58
|
rubyforge_project:
|
|
59
|
-
rubygems_version: 2.
|
|
59
|
+
rubygems_version: 2.4.3
|
|
60
60
|
signing_key:
|
|
61
61
|
specification_version: 4
|
|
62
62
|
summary: Provides integration between Docker and GoCD.
|