v1.0
This commit is contained in:
parent
93efff9452
commit
0f6ebcb694
317 changed files with 11347 additions and 0 deletions
11
db/fixtures/development/001_admin.rb
Normal file
11
db/fixtures/development/001_admin.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Admin account
|
||||
admin = User.create(
|
||||
:email => "admin@local.host",
|
||||
:name => "Administrator",
|
||||
:password => "5iveL!fe",
|
||||
:password_confirmation => "5iveL!fe"
|
||||
)
|
||||
|
||||
admin.projects_limit = 10000
|
||||
admin.admin = true
|
||||
admin.save!
|
10
db/fixtures/production/001_admin.rb
Normal file
10
db/fixtures/production/001_admin.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
admin = User.create(
|
||||
:email => "admin@local.host",
|
||||
:name => "Administrator",
|
||||
:password => "5iveL!fe",
|
||||
:password_confirmation => "5iveL!fe"
|
||||
)
|
||||
|
||||
admin.projects_limit = 10000
|
||||
admin.admin = true
|
||||
admin.save!
|
11
db/fixtures/test/001_repo.rb
Normal file
11
db/fixtures/test/001_repo.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Create dir for test repo
|
||||
repo_dir = File.join(Rails.root, "tmp", "tests")
|
||||
Dir.mkdir(repo_dir) unless File.exists?(repo_dir)
|
||||
|
||||
`cp spec/seed_project.tar.gz tmp/tests/`
|
||||
Dir.chdir(repo_dir)
|
||||
`tar -xf seed_project.tar.gz`
|
||||
3.times do |i|
|
||||
`cp -r legit/ legit_#{i}/`
|
||||
puts "Unpacked seed repo - tmp/tests/legit_#{i}"
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue