| 1 | package App::Standup::Role::Project; | ||
| 2 | use Object::Pad; | ||
| 3 | use Path::Tiny; | ||
| 4 | use Time::Seconds; | ||
| 5 | |||
| 6 | role Project { | ||
| 7 | |||
| 8 | field $project_name :param :reader; | ||
| 9 | |||
| 10 | # Unreleased, see #1 | ||
| 11 | method get_todo_tasks_from_yesterday { | ||
| 12 | |||
| 13 | # Slurp the yesterday's template file | ||
| 14 | my $yesterday = $self->date - Time::Seconds::ONE_DAY; | ||
| 15 | my $formated_date = $self->build_path($yesterday->ymd('/')); | ||
| 16 | #::p $yesterday; | ||
| 17 | #::p $formated_date; | ||
| 18 | # Keep all line between - todo and - blocking | ||
| 19 | |||
| 20 | } | ||
| 21 | |||
| 22 | # Unreleased see #1 | ||
| 23 | method get_yesterday_file_path {} | ||
| 24 | |||
| 25 | } | ||
| 26 | |||
| 27 | |||
| 28 | =head1 NAME | ||
| 29 | |||
| 30 | App::Standup::Role::Project - Project management for Standup::Diary | ||
| 31 | |||
| 32 | =head1 SYNOPSIS | ||
| 33 | |||
| 34 | class App::Standup::Diary :does( Project ) { ... } | ||
| 35 | |||
| 36 | =head1 DESCRIPTION | ||
| 37 | |||
| 38 | It provides an L<Object::Pad> role with an only C<project_name>. | ||
| 39 | |||
| 40 | Any class implementing C<App::Standup::Role::Project> have a C<$self->project_name> instance | ||
| 41 | field. | ||
| 42 | |||
| 43 | =cut |