diff options
author | Achilleas Pipinellis <axilleas@axilleas.me> | 2016-11-08 00:08:17 +0300 |
---|---|---|
committer | Connor Shea <connor.james.shea@gmail.com> | 2016-11-09 23:20:11 +0300 |
commit | dca87d47be622cbc4bef89974bda1ffdd575540c (patch) | |
tree | 848faaec211aee8f631b2e30521006857e7fb935 /Rakefile | |
parent | 04f25524d1efbb2b1365d6ece8c65fdb00018602 (diff) |
Move doc_dir inside products
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 23 |
1 files changed, 10 insertions, 13 deletions
@@ -9,28 +9,32 @@ task :pull_repos do name: 'ce', repo: 'https://gitlab.com/gitlab-org/gitlab-ce.git', temp_dir: 'tmp/ce/', - dest_dir: 'content/ce' + dest_dir: 'content/ce', + doc_dir: 'doc' } ee = { name: 'ee', repo: 'https://gitlab.com/gitlab-org/gitlab-ee.git', temp_dir: 'tmp/ee/', - dest_dir: 'content/ee' + dest_dir: 'content/ee', + doc_dir: 'doc' } omnibus = { name: 'omnibus', repo: 'https://gitlab.com/gitlab-org/omnibus-gitlab.git', temp_dir: 'tmp/omnibus/', - dest_dir: 'content/omnibus' + dest_dir: 'content/omnibus', + doc_dir: 'doc' } runner = { name: 'runner', repo: 'https://gitlab.com/gitlab-org/gitlab-ci-multi-runner.git', temp_dir: 'tmp/runner/', - dest_dir: 'content/runner' + dest_dir: 'content/runner', + doc_dir: 'docs' } products = [ce, ee, omnibus, runner] @@ -60,14 +64,7 @@ task :pull_repos do puts "\n=> Cloning #{product[:repo]} into #{product[:temp_dir]}\n" `git clone #{product[:repo]} #{product[:temp_dir]} --depth 1` - # The Runner's docs are stored in docs/ whereas all the other projects - # store them in doc/. - doc_dir = if product[:name] == 'runner' - then 'docs' - else 'doc' - end - - puts "\n=> Moving #{product[:temp_dir]}#{doc_dir}/ into #{product[:dest_dir]}\n" - `mv #{product[:temp_dir]}#{doc_dir}/ #{product[:dest_dir]}` + puts "\n=> Moving #{product[:temp_dir]}#{product[:doc_dir]}/ into #{product[:dest_dir]}\n" + `mv #{product[:temp_dir]}#{product[:doc_dir]}/ #{product[:dest_dir]}` end end |