@@ -143,7 +143,7 @@ class PushHook
143
143
def process ( repository :, ref :, before :, after :, pusher :)
144
144
case repository
145
145
when 'ruby/git.ruby-lang.org'
146
- on_push_ruby_commit_hook ( ref )
146
+ on_push_git_ruby_lang_org ( ref )
147
147
when 'ruby/ruby'
148
148
on_push_ruby ( ref , pusher : pusher )
149
149
when *DEFAULT_GEM_REPOS
@@ -157,28 +157,28 @@ class PushHook
157
157
158
158
attr_reader :logger
159
159
160
- def on_push_ruby_commit_hook ( ref )
160
+ def on_push_git_ruby_lang_org ( ref )
161
161
if ref == 'refs/heads/master'
162
- # www-data user is allowed to sudo `/home/git/ruby-commit-hook /bin/update-ruby-commit-hook.sh`.
163
- execute ( '/home/git/ruby-commit-hook /bin/update-ruby-commit-hook.sh' , user : 'git' )
162
+ # www-data user is allowed to sudo `/home/git/git. ruby-lang.org /bin/update-ruby-commit-hook.sh`.
163
+ execute ( '/home/git/git. ruby-lang.org /bin/update-ruby-commit-hook.sh' , user : 'git' )
164
164
else
165
- logger . info ( "skipped ruby-commit-hook ref: #{ ref } " )
165
+ logger . info ( "skipped git. ruby-lang.org ref: #{ ref } " )
166
166
end
167
167
end
168
168
169
169
def on_push_ruby ( ref , pusher :)
170
170
if RUBY_SYNCED_REFS . include? ( ref ) && pusher != 'matzbot' # matzbot should stop an infinite loop here.
171
- # www-data user is allowed to sudo `/home/git/ruby-commit-hook /bin/update-ruby.sh`.
172
- execute ( '/home/git/ruby-commit-hook /bin/update-ruby.sh' , File . basename ( ref ) , user : 'git' )
171
+ # www-data user is allowed to sudo `/home/git/git. ruby-lang.org /bin/update-ruby.sh`.
172
+ execute ( '/home/git/git. ruby-lang.org /bin/update-ruby.sh' , File . basename ( ref ) , user : 'git' )
173
173
else
174
174
logger . info ( "skipped ruby ref: #{ ref } (pusher: #{ pusher } )" )
175
175
end
176
176
end
177
177
178
178
def on_push_default_gem ( ref , repository :, before :, after :)
179
179
if ref == 'refs/heads/master'
180
- # www-data user is allowed to sudo `/home/git/ruby-commit-hook /bin/update-default-gem.sh`.
181
- execute ( '/home/git/ruby-commit-hook /bin/update-default-gem.sh' , *repository . split ( '/' , 2 ) , before , after , user : 'git' )
180
+ # www-data user is allowed to sudo `/home/git/git. ruby-lang.org /bin/update-default-gem.sh`.
181
+ execute ( '/home/git/git. ruby-lang.org /bin/update-default-gem.sh' , *repository . split ( '/' , 2 ) , before , after , user : 'git' )
182
182
else
183
183
logger . info ( "skipped #{ repository } ref: #{ ref } " )
184
184
end
0 commit comments