55 |
|
|
56 |
$self->{path} ||= 'conf/config.yml'; |
$self->{path} ||= 'conf/config.yml'; |
57 |
|
|
58 |
|
$log->logdie("can't open ", $self->{path}, ": $!") if ! -r $self->{path}; |
59 |
|
|
60 |
$self->{config} = LoadFile($self->{path}) || |
$self->{config} = LoadFile($self->{path}) || |
61 |
$log->logdie("can't open ",$self->{path}, ": $!"); |
$log->logdie("can't open ",$self->{path}, ": $!"); |
62 |
|
|
94 |
|
|
95 |
sub use_indexer { |
sub use_indexer { |
96 |
my $self = shift; |
my $self = shift; |
|
my $default = 'hyperestraier'; |
|
97 |
return unless ($self->{config}); |
return unless ($self->{config}); |
98 |
return $self->{config}->{use_indexer} || $default; |
return $self->{config}->{use_indexer} || undef; |
99 |
} |
} |
100 |
|
|
101 |
=head2 get |
=head2 get |