Stub dev XML RPC. Imporve docs and increase git timeout. Refs #2136
This commit is contained in:
parent
bb4343d6ce
commit
7a00c64bee
|
@ -27,9 +27,9 @@ Rosa::Application.configure do
|
|||
end
|
||||
|
||||
# Uncomment this to stub XML RPC calls
|
||||
# require 'xmlrpc/client'
|
||||
# module XMLRPC
|
||||
# class Client
|
||||
# def call(*args); 0; end
|
||||
# end
|
||||
# end
|
||||
require 'xmlrpc/client'
|
||||
module XMLRPC
|
||||
class Client
|
||||
def call(*args); 0; end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -261,11 +261,10 @@ ActiveRecord::Schema.define(:version => 20111028070604) do
|
|||
|
||||
create_table "users", :force => true do |t|
|
||||
t.string "name"
|
||||
t.string "email", :default => "", :null => false
|
||||
t.string "encrypted_password", :limit => 128, :default => "", :null => false
|
||||
t.string "password_salt", :default => "", :null => false
|
||||
t.string "email", :default => "", :null => false
|
||||
t.string "encrypted_password", :limit => 128, :default => "", :null => false
|
||||
t.string "reset_password_token"
|
||||
t.string "remember_token"
|
||||
t.datetime "reset_password_sent_at"
|
||||
t.datetime "remember_created_at"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
* urpmi git
|
||||
* useradd git
|
||||
* passwd git
|
||||
* mkdir /share/git_projects
|
||||
* sudo chown git:git /share/git_projects
|
||||
|
||||
--------------- As user who will manage gitolite
|
||||
|
||||
|
@ -18,16 +20,16 @@
|
|||
* src/gl-system-install
|
||||
* gl-setup /tmp/ga_admin.pub
|
||||
|
||||
--------------- Settings for .gitolite.rc during install
|
||||
|
||||
* $REPO_UMASK = 0022;
|
||||
* $REPO_BASE = "/home/share/git_projects";
|
||||
* $GIT_PATH = "/opt/local/bin"; # if you have several git versions
|
||||
|
||||
--------------- As user who will manage gitolite
|
||||
|
||||
* cd /share # /var/rosa
|
||||
* git clone git@gitolite:gitolite-admin
|
||||
* ln -s /home/git/repositories git_projects
|
||||
* sudo chmod -R +r /home/git/repositories
|
||||
|
||||
--------------- Settings for .gitolite.rc
|
||||
|
||||
* $REPO_UMASK = 0022;
|
||||
* git clone git@localhost:gitolite-admin
|
||||
|
||||
--------------- Setup hooks
|
||||
|
||||
|
@ -36,3 +38,10 @@
|
|||
* mkdir update.secondary.d
|
||||
* touch update.secondary.d/update.auto-build
|
||||
* chmod +x update.secondary update.secondary.d/update.auto-build
|
||||
|
||||
--------------- Code for update.auto-build
|
||||
|
||||
#!/bin/sh
|
||||
if [ "$GL_REPO" != "gitolite-admin" ]; then
|
||||
curl "http://localhost:3000/projects/auto_build?git_repo=$GL_REPO&git_user=$GL_USER"
|
||||
fi
|
||||
|
|
|
@ -2,7 +2,7 @@ require 'gitolito'
|
|||
|
||||
class Object
|
||||
def with_ga(&block)
|
||||
::Gitolito::GitoliteAdmin.thread_safe(File.join(APP_CONFIG['root_path'], 'gitolite-admin'), {:wait_lock => true, :seconds => 15}) do |ga|
|
||||
::Gitolito::GitoliteAdmin.thread_safe(File.join(APP_CONFIG['root_path'], 'gitolite-admin'), {:wait_lock => true, :seconds => 30}) do |ga|
|
||||
block.call(ga)
|
||||
end
|
||||
# ga = Gitolito::GitoliteAdmin.new File.join(APP_CONFIG['root_path'], 'gitolite-admin'); block.call(ga)
|
||||
|
|
Loading…
Reference in New Issue