From d4d0489328c01aa54532a5efa5dd464aae5dcd21 Mon Sep 17 00:00:00 2001 From: Jefferson Faseler Date: Wed, 30 Jan 2019 14:25:04 -0500 Subject: [PATCH] Update name spaces for rake tasks to shorter 'ofn'. --- .travis.yml | 2 +- GETTING_STARTED.md | 2 +- config/schedule.rb | 6 +++--- lib/tasks/billing.rake | 2 +- lib/tasks/cache.rake | 2 +- lib/tasks/data.rake | 2 +- lib/tasks/dev.rake | 2 +- lib/tasks/enterprises.rake | 2 +- lib/tasks/specs.rake | 2 +- script/setup | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index db818fad23..9fd9d0934c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,7 +39,7 @@ before_script: script: - 'if [ "$KARMA" = "true" ]; then bundle exec rake karma:run; else echo "Skipping karma run"; fi' - - 'if [ "$RSPEC_ENGINES" = "true" ]; then bundle exec rake openfoodnetwork:specs:engines:rspec; else echo "Skipping RSpec run in engines"; fi' + - 'if [ "$RSPEC_ENGINES" = "true" ]; then bundle exec rake ofn:specs:engines:rspec; else echo "Skipping RSpec run in engines"; fi' - "bundle exec rake 'knapsack:rspec[--format progress --tag ~performance]'" after_success: diff --git a/GETTING_STARTED.md b/GETTING_STARTED.md index 5a2e7eea54..c30a70c13d 100644 --- a/GETTING_STARTED.md +++ b/GETTING_STARTED.md @@ -75,7 +75,7 @@ Then the main application tests can be run with: The tests of all custom engines can be run with: - bundle exec rake openfoodnetwork:specs:engines:rspec + bundle exec rake ofn:specs:engines:rspec Note: If your OS is not explicitly supported in the setup guides then not all tests may pass. However, you may still be able to develop. Get in touch with the [#dev][slack-dev] channel on Slack to troubleshoot issues and determine if they will preclude you from contributing to OFN. diff --git a/config/schedule.rb b/config/schedule.rb index edec8351ac..4bb20df545 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -13,7 +13,7 @@ job_type :enqueue_job, "cd :path; :environment_variable=:environment bundle exe every 1.hour do - rake 'openfoodnetwork:cache:check_products_integrity' + rake 'ofn:cache:check_products_integrity' end every 1.day, at: '12:05am' do @@ -35,10 +35,10 @@ every 5.minutes do end every 1.day, at: '1:00am' do - rake 'openfoodnetwork:billing:update_account_invoices' + rake 'ofn:billing:update_account_invoices' end # On the 2nd of every month at 1:30am every '30 1 2 * *' do - rake 'openfoodnetwork:billing:finalize_account_invoices' + rake 'ofn:billing:finalize_account_invoices' end diff --git a/lib/tasks/billing.rake b/lib/tasks/billing.rake index 6bfd0a53e7..4c279bc41e 100644 --- a/lib/tasks/billing.rake +++ b/lib/tasks/billing.rake @@ -1,4 +1,4 @@ -namespace :openfoodnetwork do +namespace :ofn do namespace :billing do desc 'Update enterprise user invoices' task update_account_invoices: :environment do diff --git a/lib/tasks/cache.rake b/lib/tasks/cache.rake index 64a5d3909a..a88e745153 100644 --- a/lib/tasks/cache.rake +++ b/lib/tasks/cache.rake @@ -1,6 +1,6 @@ require 'open_food_network/products_cache_integrity_checker' -namespace :openfoodnetwork do +namespace :ofn do namespace :cache do desc 'check the integrity of the products cache' task :check_products_integrity => :environment do diff --git a/lib/tasks/data.rake b/lib/tasks/data.rake index 643886943c..9ae0984e3a 100644 --- a/lib/tasks/data.rake +++ b/lib/tasks/data.rake @@ -1,4 +1,4 @@ -namespace :openfoodnetwork do +namespace :ofn do namespace :data do desc "Adding relationships based on recent order cycles" task :create_order_cycle_relationships => :environment do diff --git a/lib/tasks/dev.rake b/lib/tasks/dev.rake index 19cc5b7a4b..2eff925395 100644 --- a/lib/tasks/dev.rake +++ b/lib/tasks/dev.rake @@ -1,4 +1,4 @@ -namespace :openfoodnetwork do +namespace :ofn do namespace :dev do desc 'load sample data' task load_sample_data: :environment do diff --git a/lib/tasks/enterprises.rake b/lib/tasks/enterprises.rake index 62d56fe8a5..547e179c2a 100644 --- a/lib/tasks/enterprises.rake +++ b/lib/tasks/enterprises.rake @@ -1,6 +1,6 @@ require 'csv' -namespace :openfoodnetwork do +namespace :ofn do namespace :dev do desc 'export enterprises to CSV' task :export_enterprises => :environment do diff --git a/lib/tasks/specs.rake b/lib/tasks/specs.rake index dddb5ffb54..bd6708dcf6 100644 --- a/lib/tasks/specs.rake +++ b/lib/tasks/specs.rake @@ -1,4 +1,4 @@ -namespace :openfoodnetwork do +namespace :ofn do namespace :specs do namespace :engines do def detect_engine_paths diff --git a/script/setup b/script/setup index 430c07b911..53332df685 100755 --- a/script/setup +++ b/script/setup @@ -52,7 +52,7 @@ printf '\n\n' | bundle exec rake db:setup db:test:prepare printf '\n' # Load some default data for your environment -bundle exec rake openfoodnetwork:dev:load_sample_data +bundle exec rake ofn:dev:load_sample_data printf '\n' printf "${YELLOW}WELCOME TO OPEN FOOD NETWORK!\n"