shiftzilla 0.2.20 → 0.2.21

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b70c6e87cb9017c6d7d978e11e8bc4c4ab1e363c20b44ca6ec3aca6c71c971e0
4
- data.tar.gz: d7b4f410f27e5a63e941c295e2b493ccae41928593286bc2dfbd68dc6497334a
3
+ metadata.gz: db7512777af875feda57de1b110ac3969924e288d5278c343dd0eabd2ea51a1f
4
+ data.tar.gz: c227a3425277f86e61c1eb38254f67982959ee26d5f75883614f79a67e31d4fd
5
5
  SHA512:
6
- metadata.gz: 2f717332b7b3835943abdb63fb206bb2766d5b3658a86948058ae34f9da189543e21d04f2711a5305f25d9682701da0e9cd6763768a20a094f01a77e6cf9ae49
7
- data.tar.gz: bf2cab87b689a2f626739622c5f78da03d1786d05e7520f3f0743cdef8110273ddf6f61eb951efbce5f125447076909653a70ce4c4a3420554a54691d261522e
6
+ metadata.gz: 7cf353cfb4e047d2fddc220fdeea3e9a55f3b698923777080e276dd28e351d6b848655dad6d9c32d2d8cf4b3bd467d2688870de7002657e244794861f1008097
7
+ data.tar.gz: 3e796a5a8134da476e308109274b9ef7b957d4392031b60dfcd4e36418175d4d0e6099e3453aa272cf5958f1a9d5cc61d2eb8272c1cba2b729328f09fc5ca874
data/.gitignore CHANGED
@@ -2,3 +2,4 @@
2
2
  *.png
3
3
  Gemfile.lock
4
4
  *.gem
5
+ .bundle
@@ -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
- system("ssh #{ssh[:host]} 'rm -rf #{ssh[:path]}/*'")
285
- system("rsync -avPq #{@tmp_dir}/* #{ssh[:host]}:#{ssh[:path]}/")
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
@@ -1,3 +1,3 @@
1
1
  module Shiftzilla
2
- VERSION = "0.2.20"
2
+ VERSION = "0.2.21"
3
3
  end
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.20
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-07 00:00:00.000000000 Z
11
+ date: 2018-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler