has config_loader => (is => 'lazy');
+has current_config => (is => 'rw');
+
sub _build_config_loader { ConfigLoader->new }
has services => (is => 'lazy');
sub _body_for_reload_config {
my ($self, $args) = @_;
- $args->{on_finished}->();
+ my $config = $self->config_loader->config_from_file($self->config_file);
+ $self->current_config($config);
+ $args->{on_finished}->($config);
}
1;