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