diff options
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/wittle_tasks.rake | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/tasks/wittle_tasks.rake b/lib/tasks/wittle_tasks.rake index 854e5c9..debf249 100644 --- a/lib/tasks/wittle_tasks.rake +++ b/lib/tasks/wittle_tasks.rake | |||
@@ -1,4 +1,7 @@ | |||
1 | # desc "Explaining what the task does" | 1 | namespace :wittle do |
2 | # task :wittle do | 2 | desc "Generate new puzzles for the day" |
3 | # # Task goes here | 3 | task :generate_puzzles => :environment do |
4 | # end | 4 | Wittle::Puzzle.create(data: WittleGenerator.new.generate_easy, category: :normal) |
5 | Wittle::Puzzle.create(data: WittleGenerator.new.generate_medium, category: :hard) | ||
6 | end | ||
7 | end | ||