Skip to content

Commit

Permalink
#255 - Fix typo on elastic search task
Browse files Browse the repository at this point in the history
  • Loading branch information
nsanta committed Sep 8, 2017
1 parent ee6c1e3 commit 70fbd8a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/tasks/elasticsearch.rake
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace :elasticsearch do
end
end

desc 'Deletes the "resource", "network" and "list" indices and regenerates it with all records'
desc 'Deletes the "resource", "network", "user" and "list" indices and regenerates it with all records'
task all_indices: :environment do
[Resource, Network, List, User].each { |klass| reset_index(klass) }
end
Expand All @@ -41,7 +41,7 @@ namespace :elasticsearch do
end

desc 'Deletes the "user" index and regenerates it with all records currently in List'
task list_index: :environment do
task user_index: :environment do
reset_index(User)
end
end
Expand All @@ -54,7 +54,7 @@ namespace :elasticsearch do
klass.import
end

desc 'Creates the "resource", "network" and "list" indices and regenerates it with all records'
desc 'Creates the "resource", "network", "user" and "list" indices and regenerates it with all records'
task all_indices: :environment do
[Resource, Network, List, User].each { |klass| create_index(klass) }
end
Expand All @@ -75,7 +75,7 @@ namespace :elasticsearch do
end

desc 'Creates the "user" index and regenerates it with all records currently in List'
task list_index: :environment do
task user_index: :environment do
create_index(User)
end
end
Expand Down

0 comments on commit 70fbd8a

Please sign in to comment.