| 1 | package CCfnX::File { | ||
| 2 | use Moose; | ||
| 3 | has mode => (isa => 'Str', is => 'ro', required => 1); | ||
| 4 | has owner => (isa => 'Str', is => 'ro', required => 1); | ||
| 5 | has group => (isa => 'Str', is => 'ro', required => 1); | ||
| 6 | has content => (isa => 'CCfnX::UserData', is => 'ro', required => 1); | ||
| 7 | |||
| 8 | sub as_hashref { | ||
| 9 | my $self = shift; | ||
| 10 | return { mode => $self->mode, owner => $self->owner, group => $self->group, content => $self->content->as_hashref_joins }; | ||
| 11 | } | ||
| 12 | } | ||
| 13 | |||
| 14 | 1; |