Commit 8da230e73d0f10ff9db3660ecaeb8cff98276824

Authored by Jacob Vosmaer
2 parents 9c8b7f30 a3945744

Merge branch 'remove_rsync' into 'master'

Remove rsync

See merge request !180
config/software/gitlab-cookbooks.rb
... ... @@ -18,13 +18,11 @@
18 18  
19 19 name "gitlab-cookbooks"
20 20  
21   -dependency "rsync"
22   -
23 21 always_build true
24 22  
25 23 source :path => File.expand_path("files/gitlab-cookbooks", Config.project_root)
26 24  
27 25 build do
28 26 command "mkdir -p #{install_dir}/embedded/cookbooks"
29   - command "#{install_dir}/embedded/bin/rsync --delete -a ./ #{install_dir}/embedded/cookbooks/"
  27 + sync project_dir, "#{install_dir}/embedded/cookbooks/"
30 28 end
... ...
config/software/gitlab-ctl.rb
... ... @@ -18,7 +18,6 @@
18 18  
19 19 name "gitlab-ctl"
20 20  
21   -dependency "rsync"
22 21 dependency "omnibus-ctl"
23 22  
24 23 source :path => File.expand_path("files/gitlab-ctl-commands", Config.project_root)
... ... @@ -65,5 +64,5 @@ done
65 64 command "chmod 755 #{install_dir}/bin/gitlab-ctl"
66 65  
67 66 # additional omnibus-ctl commands
68   - command "#{install_dir}/embedded/bin/rsync -a ./ #{install_dir}/embedded/service/omnibus-ctl/"
  67 + sync project_dir, "#{install_dir}/embedded/service/omnibus-ctl/"
69 68 end
... ...
config/software/gitlab-rails.rb
... ... @@ -26,7 +26,6 @@ dependency "bundler"
26 26 dependency "libxml2"
27 27 dependency "libxslt"
28 28 dependency "curl"
29   -dependency "rsync"
30 29 dependency "libicu"
31 30 dependency "postgresql"
32 31 dependency "python-docutils"
... ... @@ -39,7 +38,7 @@ build do
39 38 env = with_standard_compiler_flags(with_embedded_path)
40 39  
41 40 # GitLab assumes it can extract the Git revision of the currently version
42   - # from the Git repo the code lives in at boot. Because of our rsync later on,
  41 + # from the Git repo the code lives in at boot. Because of our sync later on,
43 42 # this assumption does not hold. The sed command below patches the GitLab
44 43 # source code to include the Git revision of the code included in the omnibus
45 44 # build.
... ... @@ -84,7 +83,7 @@ build do
84 83 command "cp db/schema.rb db/schema.rb.bundled"
85 84  
86 85 command "mkdir -p #{install_dir}/embedded/service/gitlab-rails"
87   - command "#{install_dir}/embedded/bin/rsync -a --delete --exclude=.git/*** --exclude=.gitignore ./ #{install_dir}/embedded/service/gitlab-rails/"
  86 + sync project_dir, "#{install_dir}/embedded/service/gitlab-rails/", exclude: %w{.git .gitignore}
88 87  
89 88 # Create a wrapper for the rake tasks of the Rails app
90 89 erb :dest => "#{install_dir}/bin/gitlab-rake",
... ...
config/software/gitlab-shell.rb
... ... @@ -20,13 +20,12 @@ name "gitlab-shell"
20 20 default_version "91753e937e729c0fedc9a5dd7ae52b85436b4971" # 1.9.7
21 21  
22 22 dependency "ruby"
23   -dependency "rsync"
24 23  
25 24 source :git => "https://gitlab.com/gitlab-org/gitlab-shell.git"
26 25  
27 26 build do
28 27 command "mkdir -p #{install_dir}/embedded/service/gitlab-shell"
29   - command "#{install_dir}/embedded/bin/rsync -a --delete --exclude=.git/*** --exclude=.gitignore ./ #{install_dir}/embedded/service/gitlab-shell/"
  28 + sync project_dir, "#{install_dir}/embedded/service/gitlab-shell/", exclude: %{.git .gitignore}
30 29 block do
31 30 env_shebang = "#!/usr/bin/env ruby"
32 31 `grep -r -l '^#{env_shebang}' #{project_dir}`.split("\n").each do |ruby_script|
... ...