diff options
| author | Zog | 2018-02-20 09:49:23 +0100 |
|---|---|---|
| committer | Zog | 2018-02-20 09:49:23 +0100 |
| commit | 12c9a06f8462d0918ee48c16524eda23ea6cc38b (patch) | |
| tree | 7e6e17fcfb81ea187456f1540b487e6645a6b6ea | |
| parent | 691de2c06064b4ab9e46d988bc7bafa86384f014 (diff) | |
| download | chouette-core-12c9a06f8462d0918ee48c16524eda23ea6cc38b.tar.bz2 | |
Regs #5924; Rename imports tasks
| -rw-r--r-- | lib/tasks/imports.rake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/imports.rake b/lib/tasks/imports.rake index 6791bd877..b91ff7efb 100644 --- a/lib/tasks/imports.rake +++ b/lib/tasks/imports.rake @@ -48,7 +48,7 @@ namespace :import do end desc "import the given file with the corresponding importer in the given StopAreaReferential" - task :import_stop_areas_in_referential, [:referential_id, :configuration_name, :filepath] => :environment do |t, args| + task :import_in_stop_area_referential, [:referential_id, :configuration_name, :filepath] => :environment do |t, args| referential = StopAreaReferential.find args[:referential_id] importer = SimpleImporter.create configuration_name: args[:configuration_name], filepath: args[:filepath] importer.configure do |config| @@ -88,7 +88,7 @@ namespace :import do end desc "import the given file with the corresponding importer in the given LineReferential" - task :import_lines_in_referential, [:referential_id, :configuration_name, :filepath] => :environment do |t, args| + task :import_in_line_referential, [:referential_id, :configuration_name, :filepath] => :environment do |t, args| referential = LineReferential.find args[:referential_id] importer = SimpleImporter.create configuration_name: args[:configuration_name], filepath: args[:filepath] importer.configure do |config| |
