diff --git a/lib/tasks/dev.rake b/lib/tasks/dev.rake index 5fbafaa5b4..e14ef6a535 100644 --- a/lib/tasks/dev.rake +++ b/lib/tasks/dev.rake @@ -327,7 +327,7 @@ namespace :ofn do This task is going to be replaced by: - $ bundle exec rake openfoodnetwork:sample_data + $ bundle exec rake ofn:sample_data It contains more sample data. WARNING diff --git a/lib/tasks/sample_data.rake b/lib/tasks/sample_data.rake index bb41d2c7d6..bf929281b6 100644 --- a/lib/tasks/sample_data.rake +++ b/lib/tasks/sample_data.rake @@ -21,7 +21,7 @@ require "tasks/sample_data/user_factory" # - https://community.openfoodnetwork.org/t/seed-data-development-provisioning-deployment/910 # - https://github.com/openfoodfoundation/openfoodnetwork/issues/2072 # -namespace :openfoodnetwork do +namespace :ofn do desc 'load sample data for development or staging' task sample_data: :environment do raise "Please run `rake db:seed` first." unless seeded? diff --git a/lib/tasks/sample_data/logging.rb b/lib/tasks/sample_data/logging.rb index ed68d7e52e..4c8ca493b6 100644 --- a/lib/tasks/sample_data/logging.rb +++ b/lib/tasks/sample_data/logging.rb @@ -3,6 +3,6 @@ module Logging def log(message) @logger ||= ActiveSupport::TaggedLogging.new(Logger.new(STDOUT)) - @logger.tagged("openfoodnetwork:sample_data:load") { @logger.info(message) } + @logger.tagged("ofn:sample_data") { @logger.info(message) } end end