-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Martin Fenner
committed
Jan 12, 2019
1 parent
8b09d59
commit 0a94dce
Showing
7 changed files
with
139 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace :provider do | ||
desc 'Import all providers' | ||
task :import => :environment do | ||
Provider.__elasticsearch__.create_index! | ||
Provider.import | ||
end | ||
|
||
desc "Create index for providers" | ||
task :create_index => :environment do | ||
Provider.__elasticsearch__.create_index! | ||
end | ||
|
||
desc "Delete index for providers" | ||
task :delete_index => :environment do | ||
Provider.__elasticsearch__.delete_index! | ||
end | ||
|
||
desc "Refresh index for providers" | ||
task :refresh_index => :environment do | ||
Provider.__elasticsearch__.refresh_index! | ||
end | ||
end |