X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FPlugin%2FScheduler.pm;h=3c4d649360d1ce83551726523aeb11765e723b9d;hb=13b998adb67bfd51cab7a4752a4f453fd6b5fac2;hp=6a200f1eaf4aa46fad122ab1f3faf223c2f748ab;hpb=29215beba04b0ec93b9dcfededc7d165553da326;p=catagits%2FCatalyst-Plugin-Scheduler.git diff --git a/lib/Catalyst/Plugin/Scheduler.pm b/lib/Catalyst/Plugin/Scheduler.pm index 6a200f1..3c4d649 100644 --- a/lib/Catalyst/Plugin/Scheduler.pm +++ b/lib/Catalyst/Plugin/Scheduler.pm @@ -12,7 +12,7 @@ use Set::Scalar; 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'); @@ -259,7 +259,8 @@ sub _check_yaml { # 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} );