six-rsync 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +1 -1
  2. data/lib/six/rsync/lib.rb +10 -3
  3. data/lib/six/rsync.rb +1 -1
  4. metadata +2 -2
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ require 'rake/testtask'
12
12
 
13
13
  spec = Gem::Specification.new do |s|
14
14
  s.name = 'six-rsync'
15
- s.version = '0.2.0'
15
+ s.version = '0.2.1'
16
16
  s.has_rdoc = true
17
17
  s.extra_rdoc_files = ['README', 'LICENSE']
18
18
  s.summary = 'Your summary here'
data/lib/six/rsync/lib.rb CHANGED
@@ -412,8 +412,11 @@ module Six
412
412
 
413
413
  arr_opts << esc(File.join(host, '.pack/.'))
414
414
  arr_opts << esc(pack_path)
415
-
416
- command('', arr_opts)
415
+ begin
416
+ command('', arr_opts)
417
+ rescue
418
+ @logger.warn "There was a problem during updating, please retry!"
419
+ end
417
420
  else
418
421
  c = mismatch.size
419
422
  @logger.info "Fetching #{mismatch.size} files... Please wait"
@@ -437,7 +440,11 @@ module Six
437
440
  arr_opts << esc(File.join(host, '.pack/.'))
438
441
  arr_opts << esc(pack_path)
439
442
 
440
- command('', arr_opts)
443
+ begin
444
+ command('', arr_opts)
445
+ rescue
446
+ @logger.warn "There was a problem during updating, please retry!"
447
+ end
441
448
  FileUtils.rm_f slist
442
449
  end
443
450
  end
data/lib/six/rsync.rb CHANGED
@@ -30,7 +30,7 @@ module Six
30
30
  end
31
31
 
32
32
  module Rsync
33
- VERSION = '0.2.0'
33
+ VERSION = '0.2.1'
34
34
  TOOLS_PATH = File.join(BASE_PATH, 'tools')
35
35
  FOLDER = /(.*)\/(.*)/
36
36
  ENV['PATH'] = ENV['PATH'] + ";#{TOOLS_PATH};#{File.join(TOOLS_PATH, 'bin')}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: six-rsync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sickboy
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-08 00:00:00 +01:00
12
+ date: 2009-12-06 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15