blob: 1be45e292af5f129c4aa0d32f5b5e55781119b09 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
namespace :wittle do
desc "Generate new puzzles for the day"
task :generate_puzzles => :environment do
require "wittle_generator"
Puzzle.create(data: WittleGenerator.new.generate_easy, category: :normal)
Puzzle.create(data: WittleGenerator.new.generate_medium, category: :hard)
Puzzle.create(data: WittleGenerator.new.generate_expert, category: :expert)
end
end
|