bard 0.31.0 → 0.32.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/lib/bard.rb +6 -1
- data/lib/bard/capistrano.rb +7 -0
- data/lib/bard/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: c5be732a14386e0628e9c150546de8927f940116
|
|
4
|
+
data.tar.gz: a88dd21178b16c74a1922d56deafe9cf0c264c4d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b80a6f1ee3e3ab4980cb89b20b85f382be1a520684ca7ad57a6f0e7f6a19a53f94caec2fe04c939e91c3a70be8d109bdac3040ebf121dfbbbf66d8979e434a0b
|
|
7
|
+
data.tar.gz: f4496b57d802c589460420f89277487dc999b1018f1cf11d654872d2aff2e255ecca87e81000b4656b9d4493928bb1c16eeee1189a5a4d2859b6c00b05bc7e13
|
data/lib/bard.rb
CHANGED
|
@@ -100,7 +100,12 @@ class Bard::CLI < Thor
|
|
|
100
100
|
|
|
101
101
|
if success
|
|
102
102
|
puts
|
|
103
|
-
puts "Continuous integration: success!
|
|
103
|
+
puts "Continuous integration: success!"
|
|
104
|
+
if File.exist?("coverage")
|
|
105
|
+
puts "Downloading test coverage from CI..."
|
|
106
|
+
run_crucial "cap _2.5.10_ download_ci_test_coverage"
|
|
107
|
+
end
|
|
108
|
+
puts "Deploying..."
|
|
104
109
|
else
|
|
105
110
|
puts
|
|
106
111
|
puts ci.last_response
|
data/lib/bard/capistrano.rb
CHANGED
|
@@ -81,4 +81,11 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
81
81
|
uri = URI.parse("ssh://#{roles[ENV['ROLES'].to_sym].first.to_s}")
|
|
82
82
|
exec "ssh -t #{"-p#{uri.port} " if uri.port}#{uri.user}@#{uri.host} 'cd #{application} && exec $SHELL'"
|
|
83
83
|
end
|
|
84
|
+
|
|
85
|
+
desc "download latest test coverage information from CI"
|
|
86
|
+
task :download_ci_test_coverage do
|
|
87
|
+
uri = URI.parse("ssh://#{roles[:staging].first}")
|
|
88
|
+
portopt = "-e'ssh -p#{uri.port}'" if uri.port
|
|
89
|
+
system "rsync #{portopt} --delete -avz #{uri.user}@#{uri.host}:~jenkins/jobs/#{application}/workspace/coverage ./"
|
|
90
|
+
end
|
|
84
91
|
end
|
data/lib/bard/version.rb
CHANGED