use Storable qw/lock_store lock_retrieve/;
use YAML;
-our $VERSION = '0.06';
+our $VERSION = '0.07';
__PACKAGE__->mk_classdata( '_events' => [] );
__PACKAGE__->mk_accessors('_event_state');
# wipe out all current events and reload from YAML
$c->_events( [] );
- my $yaml = YAML::LoadFile( $c->config->{scheduler}->{yaml_file} );
+ my $file = $c->config->{scheduler}->{yaml_file};
+ my $yaml = YAML::LoadFile( "$file" );
foreach my $event ( @{$yaml} ) {
$c->schedule( %{$event} );