summaryrefslogtreecommitdiff
path: root/db/fixtures/test
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-31 19:38:26 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-31 19:38:26 +0300
commit49b119fa31d530cf2411b2c84e54b8f455e23315 (patch)
treef8fc1024de2b7c89c33426e627bc874044171fa4 /db/fixtures/test
parent61f70334efa3ff4a2eda4a1d29c2ee59ecb82721 (diff)
downloadgitlab-ce-49b119fa31d530cf2411b2c84e54b8f455e23315.tar.gz
Remove old test seeds
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'db/fixtures/test')
-rw-r--r--db/fixtures/test/001_repo.rb36
1 files changed, 0 insertions, 36 deletions
diff --git a/db/fixtures/test/001_repo.rb b/db/fixtures/test/001_repo.rb
index 281e3476df1..e69de29bb2d 100644
--- a/db/fixtures/test/001_repo.rb
+++ b/db/fixtures/test/001_repo.rb
@@ -1,36 +0,0 @@
-require 'fileutils'
-
-print "Unpacking seed repository..."
-
-SEED_REPO = 'seed_project.tar.gz'
-REPO_PATH = Rails.root.join('tmp', 'repositories')
-
-# Make whatever directories we need to make
-FileUtils.mkdir_p(REPO_PATH)
-
-# Copy the archive to the repo path
-FileUtils.cp(Rails.root.join('spec', SEED_REPO), REPO_PATH)
-
-# chdir to the repo path
-FileUtils.cd(REPO_PATH) do
- # Extract the archive
- `tar -xf #{SEED_REPO}`
-
- # Remove the copy
- FileUtils.rm(SEED_REPO)
-end
-puts ' done.'
-print "Creating seed satellite..."
-
-SATELLITE_PATH = Rails.root.join('tmp', 'satellite')
-# Make directory
-FileUtils.mkdir_p(SATELLITE_PATH)
-# Clear any potential directory
-FileUtils.rm_rf("#{SATELLITE_PATH}/gitlabhq")
-# Chdir, clone from the seed
-FileUtils.cd(SATELLITE_PATH) do
- # Clone the satellite
-
- `git clone --quiet #{REPO_PATH}/gitlabhq #{SATELLITE_PATH}/gitlabhq`
-end
-puts ' done.'