six-rsync 0.3.8 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,6 +24,10 @@ module Six
24
24
  todo << :init if bool
25
25
  end
26
26
 
27
+ opts.on("-s", "--status", "Status of Repository") do |bool|
28
+ todo << :status if bool
29
+ end
30
+
27
31
  opts.on("-u", "--update", "Updates Repository") do |bool|
28
32
  todo << :update if bool
29
33
  end
data/lib/six/rsync-app.rb CHANGED
@@ -75,6 +75,12 @@ module Six
75
75
  app
76
76
  end
77
77
 
78
+ def self.status(folder)
79
+ app = self.new(folder)
80
+ app.repo.status
81
+ app
82
+ end
83
+
78
84
  def self.clone(folder)
79
85
  folder[/(.*)[\/|\\](.*)/]
80
86
  pa, folder = $1, $2
@@ -0,0 +1,12 @@
1
+ # encoding: utf-8
2
+ # six-rsync-mirror /var/rsync hosts
3
+ # hosts format: user@host_or_ip:/path/to/rsync/store
4
+ # Use with public/private key combo
5
+ PATH = ARGV[0]
6
+ ARGV -= [PATH]
7
+ ARGV.each do |repo|
8
+ puts
9
+ puts "Processing: #{repo}"
10
+ system "rsync -e ssh --exclude bis --include .repository.yml --times -O --no-whole-file -r --delete --stats --progress #{PATH}. #{repo}"
11
+ puts
12
+ 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.3.8'
33
+ VERSION = '0.4.1'
34
34
  TOOLS_PATH = File.join(BASE_PATH, 'tools')
35
35
 
36
36
  FOLDER = /(.*)\/(.*)/
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 3
8
- - 8
9
- version: 0.3.8
7
+ - 4
8
+ - 1
9
+ version: 0.4.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sickboy
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-12 00:00:00 +02:00
17
+ date: 2010-04-20 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -33,8 +33,9 @@ dependencies:
33
33
  version_requirements: *id001
34
34
  description: Your summary here
35
35
  email: sb@dev-heaven.net
36
- executables: []
37
-
36
+ executables:
37
+ - six-rsync
38
+ - six-rsync-mirror
38
39
  extensions: []
39
40
 
40
41
  extra_rdoc_files:
@@ -44,6 +45,8 @@ files:
44
45
  - LICENSE
45
46
  - README
46
47
  - Rakefile
48
+ - bin/six-rsync
49
+ - bin/six-rsync-mirror
47
50
  - lib/six/rsync/base.rb
48
51
  - lib/six/rsync/lib.rb
49
52
  - lib/six/rsync/options.rb
@@ -51,6 +54,7 @@ files:
51
54
  - lib/six/rsync/repository.rb
52
55
  - lib/six/rsync/working_directory.rb
53
56
  - lib/six/rsync-app.rb
57
+ - lib/six/rsync-mirror.rb
54
58
  - lib/six/rsync.rb
55
59
  has_rdoc: true
56
60
  homepage: