git-fyncy 0.3.1 → 0.3.2
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/lib/git-fyncy/version.rb +1 -1
- data/lib/git-fyncy.rb +10 -1
- metadata +8 -2
data/lib/git-fyncy/version.rb
CHANGED
data/lib/git-fyncy.rb
CHANGED
|
@@ -19,7 +19,7 @@ module GitFyncy
|
|
|
19
19
|
|
|
20
20
|
def scp(paths)
|
|
21
21
|
return if paths.empty?
|
|
22
|
-
command "rsync -
|
|
22
|
+
command "rsync -zpR #{paths.to_a.join ' '} #{@remote}:#{@path}"
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
def ssh_rm(paths)
|
|
@@ -50,9 +50,16 @@ module GitFyncy
|
|
|
50
50
|
remote.scp git_aware_files
|
|
51
51
|
relpath = method :relative_path
|
|
52
52
|
|
|
53
|
+
puts "GIT FYNCY #{DateTime.now.ctime}"
|
|
53
54
|
files_to_remove = Set.new
|
|
54
55
|
begin
|
|
56
|
+
pid = nil
|
|
55
57
|
Listen.to!('.') do |modified, added, removed|
|
|
58
|
+
if pid != Process.id
|
|
59
|
+
pid = Process.id
|
|
60
|
+
puts "pid: #{pid}"
|
|
61
|
+
end
|
|
62
|
+
|
|
56
63
|
begin
|
|
57
64
|
remote.scp git_aware_files
|
|
58
65
|
rel_removed = removed.map(&relpath)
|
|
@@ -64,6 +71,8 @@ module GitFyncy
|
|
|
64
71
|
end
|
|
65
72
|
rescue SignalException
|
|
66
73
|
exit 42
|
|
74
|
+
ensure
|
|
75
|
+
puts "\n"
|
|
67
76
|
end
|
|
68
77
|
end
|
|
69
78
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: git-fyncy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-08-
|
|
12
|
+
date: 2013-08-29 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: listen
|
|
@@ -58,12 +58,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
58
58
|
- - ! '>='
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
60
|
version: '0'
|
|
61
|
+
segments:
|
|
62
|
+
- 0
|
|
63
|
+
hash: 4533585117346596161
|
|
61
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
65
|
none: false
|
|
63
66
|
requirements:
|
|
64
67
|
- - ! '>='
|
|
65
68
|
- !ruby/object:Gem::Version
|
|
66
69
|
version: '0'
|
|
70
|
+
segments:
|
|
71
|
+
- 0
|
|
72
|
+
hash: 4533585117346596161
|
|
67
73
|
requirements: []
|
|
68
74
|
rubyforge_project:
|
|
69
75
|
rubygems_version: 1.8.23
|