Commit 758b17d2 authored by Sergio Díaz's avatar Sergio Díaz

Rake tasks for settings for gitolite and checkout in staging

parent 59f92c97
namespace :staging do namespace :staging do
desc "Set staging settings for plugin redmine_checkout" desc "Updates all settings for staging"
task :checkout, [:needs] => :environment do task :update_settings => [
Setting[:plugin_redmine_checkout] = { "staging:update_settings:gitolite",
:description_Mercurial=>"", "staging:update_settings:checkout"
:display_command_Darcs=>"0", ]
:display_command_Subversion=>"0",
:display_command_Git=>"0", namespace :update_settings do
:overwrite_description_Mercurial=>"0", desc "Set staging settings for plugin redmine_gitolite"
:overwrite_description_Cvs=>"0", task :gitolite => :environment do
:protocols_Darcs=>[{ Setting[:plugin_redmine_gitolite] = {
:regex=>"", "developerBaseUrls"=>"git@staging.es:",
:command=>"darcs get", "basePath"=>"/opt/git/repositories/",
:is_default=>"1", "readOnlyBaseUrls"=>"git://staging.es/",
:protocol=>"Darcs", "gitoliteUrl"=>"git@staging.es:gitolite-admin.git",
:regex_replacement=>"", "gitoliteIdentityFile"=>"/home/rails/.ssh/id_rsa"
:access=>"permission"}], }
:use_zero_clipboard=>"1", end
:protocols_Mercurial=>[{
:regex=>"", desc "Set staging settings for plugin redmine_checkout"
:command=>"hg clone", task :checkout => :environment do
:is_default=>"1", Setting[:plugin_redmine_checkout] = {
:protocol=>"Mercurial", :description_Mercurial=>"",
:regex_replacement=>"", :display_command_Darcs=>"0",
:access=>"permission"}], :display_command_Subversion=>"0",
:display_login=>"", :display_command_Git=>"0",
:display_checkout_info=>"1", :overwrite_description_Mercurial=>"0",
:overwrite_description_Darcs=>"0", :overwrite_description_Cvs=>"0",
:overwrite_description_Subversion=>"0", :protocols_Darcs=>[{
:display_command_Cvs=>"0", :regex=>"",
:description_Darcs=>"", :command=>"darcs get",
:overwrite_description_Bazaar=>"0", :is_default=>"1",
:protocols_Bazaar=>[{ :protocol=>"Darcs",
:regex=>"", :regex_replacement=>"",
:command=>"bzr checkout", :access=>"permission"
:is_default=>"1", }],
:protocol=>"Bazaar", :use_zero_clipboard=>"1",
:regex_replacement=>"", :protocols_Mercurial=>[{
:access=>"permission"}], :regex=>"",
:description_Git=>"", :command=>"hg clone",
:description_Abstract=>"The data contained in this repository can be downloaded to your computer using one of several clients.\nPlease see the documentation of your version control software client for more information.\n\nPlease select the desired protocol below to get the URL.\n", :is_default=>"1",
:display_command_Mercurial=>"0", :protocol=>"Mercurial",
:description_Subversion=>"", :regex_replacement=>"",
:protocols_Git=>[{ :access=>"permission"
:regex=>"\\/opt\\/git\\/repositories\\/(.*)\\.git", }],
:command=>"git clone", :display_login=>"",
:is_default=>"1", :display_checkout_info=>"1",
:protocol=>"Git", :overwrite_description_Darcs=>"0",
:regex_replacement=>"git@ohwr.stataging.es:\\1.git", :overwrite_description_Subversion=>"0",
:access=>"read+write"}, :display_command_Cvs=>"0",
{:regex=>"\\/opt\\/git\\/repositories\\/(.*)\\.git", :description_Darcs=>"",
:command=>"git clone", :overwrite_description_Bazaar=>"0",
:protocol=>"Git Read Only", :protocols_Bazaar=>[{
:regex_replacement=>"git://ohwr.staging.es/\\1.git", :regex=>"",
:access=>"read-only"}], :command=>"bzr checkout",
:description_Bazaar=>"", :is_default=>"1",
:overwrite_description_Git=>"0", :protocol=>"Bazaar",
:description_Cvs=>"", :regex_replacement=>"",
:display_command_Bazaar=>"0", :access=>"permission"
:protocols_Cvs=>[{ }],
:regex=>"", :description_Git=>"",
:append_path=>"1", :description_Abstract=>"The data contained in this repository can be downloaded to your computer using one of several clients.\nPlease see the documentation of your version control software client for more information.\n\nPlease select the desired protocol below to get the URL.\n",
:command=>"cvs checkout", :display_command_Mercurial=>"0",
:is_default=>"1", :description_Subversion=>"",
:protocol=>"Cvs", :protocols_Git=>[{
:regex_replacement=>"", :regex=>"\\/opt\\/git\\/repositories\\/(.*)\\.git",
:access=>"permission"}], :command=>"git clone",
:protocols_Subversion=>[{ :is_default=>"1",
:regex=>"file:\\/\\/\\/opt\\/svn\\/(.*)", :protocol=>"Git",
:append_path=>"1", :regex_replacement=>"git@staging.es:\\1.git",
:command=>"svn checkout", :access=>"read+write"
:is_default=>"1", },{
:protocol=>"Subversion", :regex=>"\\/opt\\/git\\/repositories\\/(.*)\\.git",
:regex_replacement=>"http://svn.ohwr.staging.es/\\1", :command=>"git clone",
:access=>"permission"}] :protocol=>"Git Read Only",
:regex_replacement=>"git://staging.es/\\1.git",
:access=>"read-only"
}],
:description_Bazaar=>"",
:overwrite_description_Git=>"0",
:description_Cvs=>"",
:display_command_Bazaar=>"0",
:protocols_Cvs=>[{
:regex=>"",
:append_path=>"1",
:command=>"cvs checkout",
:is_default=>"1",
:protocol=>"Cvs",
:regex_replacement=>"",
:access=>"permission"
}],
:protocols_Subversion=>[{
:regex=>"file:\\/\\/\\/opt\\/svn\\/(.*)",
:append_path=>"1",
:command=>"svn checkout",
:is_default=>"1",
:protocol=>"Subversion",
:regex_replacement=>"http://svn.staging.es/\\1",
:access=>"permission"
}]
} }
end
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment