six-rsync 0.1.4 → 0.1.5

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.
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.1.4'
15
+ s.version = '0.1.5'
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
@@ -407,7 +407,7 @@ module Six
407
407
  arr_opts << RSH
408
408
  end
409
409
 
410
- arr_opts << File.join(host, '.pack/.')
410
+ arr_opts << esc(File.join(host, '.pack/.'))
411
411
  arr_opts << esc(pack_path)
412
412
 
413
413
  command('', arr_opts)
@@ -6,6 +6,7 @@ require 'optparse'
6
6
  module Six
7
7
  module Repositories
8
8
  module Rsync
9
+ @@host = ''
9
10
  module_function
10
11
  def parse_options
11
12
  todo = [] #, general_todo, second_todo = [], [], []
@@ -88,6 +89,7 @@ module Six
88
89
  @config = @config.merge(options)
89
90
  =end
90
91
  end
92
+
91
93
  end
92
94
  end
93
95
  end
data/lib/six/rsync-app.rb CHANGED
@@ -43,7 +43,9 @@ module Six
43
43
  def logger
44
44
  @@log
45
45
  end
46
-
46
+ def host
47
+ @@host
48
+ end
47
49
  class App
48
50
  attr_reader :repo
49
51
  def logger
@@ -72,8 +74,10 @@ module Six
72
74
  app
73
75
  end
74
76
 
75
- def self.clone(host)
76
-
77
+ def self.clone(folder)
78
+ folder[/(.*)[\/|\\](.*)/]
79
+ pa, folder = $1, $2
80
+ @repo = Six::Repositories::Rsync.clone(Six::Repositories::Rsync.host, folder, :path => pa, :log => Six::Repositories::Rsync.logger)
77
81
  end
78
82
 
79
83
  def self.init(folder)
@@ -81,7 +85,7 @@ module Six
81
85
  # logger.error "#{folder} already exists!"
82
86
  # Process.exit
83
87
  # end
84
- @repo = Six::Repositories::Rsync.init(folder, :log => Six::Repositories::Rsync.logger)
88
+ Six::Repositories::Rsync.init(folder, :log => Six::Repositories::Rsync.logger)
85
89
  end
86
90
  end
87
91
 
data/lib/six/rsync.rb CHANGED
@@ -30,7 +30,7 @@ module Six
30
30
  end
31
31
 
32
32
  module Rsync
33
- VERSION = '0.1.4'
33
+ VERSION = '0.1.5'
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.1.4
4
+ version: 0.1.5
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-09-30 00:00:00 +02:00
12
+ date: 2009-10-01 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies: []
15
15