Sha256: c6a467a328a77d2679290f788c89618dfb5e1adec917ab8cba5fde1c77fa3558
Contents?: true
Size: 1.48 KB
Versions: 27
Compression:
Stored size: 1.48 KB
Contents
require_relative '../types/priority-queue' require_relative '../types/monthly-task-summary' require_relative '../types/daily' require_relative '../types/weekly' require_relative '../types/monthly' module Evertils module Controller class Generate < Controller::Base # generate daily notes def daily note = Type::Daily.new(@config) note.create if note.should_create? end # generate weekly notes def weekly note = Type::Weekly.new(@config) note.create if note.should_create? note.add_daily_note_link end # generate monthly notes def monthly note = Type::Monthly.new(@config) note.create if note.should_create? note.add_weekly_note_link end # generate monthly task summary templates def mts(arg) Notify.error('Name argument is required', {}) if arg.nil? note = Type::MonthlyTaskSummary.new(@config, arg[1]) note.create if note.should_create? end # generate priority queue notes def pq note = Type::PriorityQueue.new(@config) note.create if note.should_create? end # creates the notes required to start the day # - priority queue # - daily # - weekly (if today is Monday and there isn't a weekly log already) # - monthly (if today is the 1st and there isn't a monthly log already) def morning pq daily weekly monthly end end end end
Version data entries
27 entries across 27 versions & 1 rubygems