about summary refs log tree commit diff stats
path: root/lib/tasks/wittle_tasks.rake
blob: debf249fa509b1b02397e441dbe7916f7e183558 (plain) (blame)
1
2
3
4
5
6
7
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)
  end
end