Permalink
Browse files

removing paths initializer

  • Loading branch information...
1 parent aa10db3 commit afc15ffa25407c8cd4111b77926a26c186b0538a @tsujigiri tsujigiri committed Sep 8, 2013
Showing with 1 addition and 13 deletions.
  1. +0 −1 .gitignore
  2. +0 −12 config/initializers/paths.rb
  3. +1 −0 lib/capistrano/tasks/base.rb
  4. 0 public/data/zip/.gitkeep
View
@@ -20,7 +20,6 @@ solr/pids
config/database.yml
vendor/bundle
vendor/cache
-public/data
coverage
hiredis/
log/
@@ -1,12 +0,0 @@
-# creates the paths needed
-
-%w[
- public/data/zip
-
-].each do |path|
- dirs = path.split('/')
- dirs.size.times do |i|
- new_path = Rails.root.to_s + '/' + dirs[0..i].join('/')
- Dir.mkdir(new_path) unless File.directory?(new_path)
- end
-end
@@ -8,6 +8,7 @@
ln("#{shared_path}/config/key_mendeley.txt", "#{release_path}/key_mendeley.txt")
ln("#{shared_path}/config/key_plos.txt", "#{release_path}/key_plos.txt")
ln("#{shared_path}/data", "#{release_path}/public/data")
+ mkdir("#{shared_path}/data/zip")
mkdir("#{shared_path}/assets")
ln("#{shared_path}/assets", "#{release_path}/public/assets")
end
View
No changes.

0 comments on commit afc15ff

Please sign in to comment.