|
|
|
|
@ -233,6 +233,25 @@ __PACKAGE__->has_many( |
|
|
|
|
|
|
|
|
|
use DateTime; |
|
|
|
|
|
|
|
|
|
sub as_hashref { |
|
|
|
|
my ( $self ) = @_; |
|
|
|
|
|
|
|
|
|
return +{ |
|
|
|
|
id => $self->id, |
|
|
|
|
person_id => $self->person_id, |
|
|
|
|
domain_id => $self->domain_id, |
|
|
|
|
max_static_file_count => $self->max_static_file_count, |
|
|
|
|
max_static_file_size => $self->max_static_file_size, |
|
|
|
|
max_static_webroot_size => $self->max_static_webroot_size, |
|
|
|
|
minutes_wait_after_build => $self->minutes_wait_after_build, |
|
|
|
|
builds_per_hour => $self->builds_per_hour, |
|
|
|
|
builds_per_day => $self->builds_per_day, |
|
|
|
|
build_priority => $self->build_priority, |
|
|
|
|
is_enabled => $self->is_enabled, |
|
|
|
|
created_at => $self->created_at->strftime( '%F %T' ), |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
sub repo { |
|
|
|
|
my ( $self ) = @_; |
|
|
|
|
|
|
|
|
|
|