gitpusher 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gitpusher/runner.rb +3 -2
- data/lib/gitpusher/version.rb +1 -1
- metadata +25 -9
data/lib/gitpusher/runner.rb
CHANGED
@@ -31,7 +31,6 @@ module GitPusher
|
|
31
31
|
repo_path = File.join(base_dir, repo_name)
|
32
32
|
puts "[#{Process.pid}][#{repo_name}]Cheking #{src_repo.url} ..."
|
33
33
|
unless File.exist?(repo_path)
|
34
|
-
p src_repo.url
|
35
34
|
`git clone #{src_repo.url}`
|
36
35
|
end
|
37
36
|
|
@@ -63,9 +62,11 @@ module GitPusher
|
|
63
62
|
end
|
64
63
|
|
65
64
|
Dir.chdir(repo_path) do
|
65
|
+
local_repo.git.checkout({}, branch)
|
66
|
+
|
66
67
|
# pull する
|
67
68
|
puts "[#{Process.pid}][#{repo_name}]Pulling #{branch} ..."
|
68
|
-
local_repo.git.pull({}, 'origin', branch)
|
69
|
+
local_repo.git.pull({ :timeout => 300 }, 'origin', branch)
|
69
70
|
|
70
71
|
# git push mirror #{branch} する
|
71
72
|
puts "[#{Process.pid}][#{repo_name}]Pushing #{branch} ..."
|
data/lib/gitpusher/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitpusher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: grit
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,15 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: octokit
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ! '>='
|
@@ -32,10 +37,15 @@ dependencies:
|
|
32
37
|
version: '0'
|
33
38
|
type: :runtime
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: pit
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
51
|
- - ! '>='
|
@@ -43,7 +53,12 @@ dependencies:
|
|
43
53
|
version: '0'
|
44
54
|
type: :runtime
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
47
62
|
description:
|
48
63
|
email:
|
49
64
|
- gosukenator@gmail.com
|
@@ -94,9 +109,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
109
|
version: '0'
|
95
110
|
requirements: []
|
96
111
|
rubyforge_project:
|
97
|
-
rubygems_version: 1.8.
|
112
|
+
rubygems_version: 1.8.23
|
98
113
|
signing_key:
|
99
114
|
specification_version: 3
|
100
115
|
summary: A command line tool for replicating git repositories from one service to
|
101
116
|
another.
|
102
117
|
test_files: []
|
118
|
+
has_rdoc:
|