From edcdb98d1894a6e76bead9efcac4aebeceaeb0dc Mon Sep 17 00:00:00 2001 From: Max Wofford Date: Tue, 20 May 2025 13:31:27 -0400 Subject: [PATCH] Add rake task for cloning projects --- README.md | 8 ++++++++ lib/tasks/clone_projects.rake | 6 ++++++ 2 files changed, 14 insertions(+) create mode 100644 lib/tasks/clone_projects.rake diff --git a/README.md b/README.md index ddba43d..cc1cccd 100644 --- a/README.md +++ b/README.md @@ -33,3 +33,11 @@ Done your project + want to submit it to get your grant? Submit it in the form h Remember to read through the [submission guidelines](https://highway.hackclub.com/advanced/submitting) before submitting! # Ready. Set. Build! + +--- + +# Website development + +Ooooh, you're in the README to figure out how the actual highway website works? Sure! + +It's a standard rails codebase, but when you first start up you might want to run `bin/rails projects:clone` to download all the submissions. \ No newline at end of file diff --git a/lib/tasks/clone_projects.rake b/lib/tasks/clone_projects.rake new file mode 100644 index 0000000..8bb2a46 --- /dev/null +++ b/lib/tasks/clone_projects.rake @@ -0,0 +1,6 @@ +namespace :projects do + desc "Clone or update all projects from submissions.yml" + task clone: :environment do + CloneProjectsJob.perform_now + end +end