File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -57,15 +57,17 @@ namespace :arclight do
57
57
task :seed do
58
58
puts 'Seeding index with data from spec/fixtures/ead...'
59
59
Dir . glob ( 'spec/fixtures/ead/*.xml' ) . each do |file |
60
- system ( "FILE=#{ file } rake arclight:index" ) # no REPOSITORY_ID
60
+ # no REPOSITORY_ID
61
+ ENV [ 'FILE' ] = file
62
+ Rake ::Task [ 'arclight:index' ] . invoke
61
63
end
62
64
Dir . glob ( 'spec/fixtures/ead/*' ) . each do |dir |
63
65
next unless File . directory? ( dir )
64
66
65
- system ( " REPOSITORY_ID= #{ File . basename ( dir ) } " \
66
- 'REPOSITORY_FILE= spec/fixtures/config/repositories.yml ' \
67
- " DIR= #{ dir } " \
68
- 'rake arclight:index_dir')
67
+ ENV [ ' REPOSITORY_ID' ] = File . basename ( dir )
68
+ ENV [ 'REPOSITORY_FILE' ] = ' spec/fixtures/config/repositories.yml'
69
+ ENV [ ' DIR' ] = dir
70
+ Rake :: Task [ ' arclight:index_dir'] . invoke
69
71
end
70
72
end
71
73
end
You can’t perform that action at this time.
0 commit comments