shiftzilla 0.2.20 → 0.2.21
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/.gitignore +1 -0
- data/lib/shiftzilla/org_data.rb +8 -2
- data/lib/shiftzilla/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: db7512777af875feda57de1b110ac3969924e288d5278c343dd0eabd2ea51a1f
|
|
4
|
+
data.tar.gz: c227a3425277f86e61c1eb38254f67982959ee26d5f75883614f79a67e31d4fd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7cf353cfb4e047d2fddc220fdeea3e9a55f3b698923777080e276dd28e351d6b848655dad6d9c32d2d8cf4b3bd467d2688870de7002657e244794861f1008097
|
|
7
|
+
data.tar.gz: 3e796a5a8134da476e308109274b9ef7b957d4392031b60dfcd4e36418175d4d0e6099e3453aa272cf5958f1a9d5cc61d2eb8272c1cba2b729328f09fc5ca874
|
data/.gitignore
CHANGED
data/lib/shiftzilla/org_data.rb
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
require 'fileutils'
|
|
1
2
|
require 'json'
|
|
2
3
|
require 'shiftzilla/bug'
|
|
3
4
|
require 'shiftzilla/helpers'
|
|
@@ -281,8 +282,13 @@ module Shiftzilla
|
|
|
281
282
|
end
|
|
282
283
|
|
|
283
284
|
def publish_reports(ssh)
|
|
284
|
-
|
|
285
|
-
|
|
285
|
+
if ssh[:host] == '_localhost'
|
|
286
|
+
FileUtils.rm_rf("#{ssh[:path]}/*")
|
|
287
|
+
system("rsync -avPq #{@tmp_dir}/* #{ssh[:path]}/")
|
|
288
|
+
else
|
|
289
|
+
system("ssh #{ssh[:host]} 'rm -rf #{ssh[:path]}/*'")
|
|
290
|
+
system("rsync -avPq #{@tmp_dir}/* #{ssh[:host]}:#{ssh[:path]}/")
|
|
291
|
+
end
|
|
286
292
|
end
|
|
287
293
|
|
|
288
294
|
private
|
data/lib/shiftzilla/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shiftzilla
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.21
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- N. Harrison Ripps
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-09-
|
|
11
|
+
date: 2018-09-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|