handle_from_file
);
+has passwd_file => (is => 'ro', default => sub { '/etc/passwd' });
+
sub gather {
my ($self) = @_;
return transform_exceptions {
sub _open_passwd_fh {
my ($self) = @_;
- return handle_from_file '/etc/passwd';
+ return handle_from_file $self->passwd_file;
}
1;