1 # Dobrica Pavlinusic, <dpavlin@rot13.org> 10/26/07 21:37:12 CEST
2 package CWMP::Store::YAML;
8 use base qw/CWMP::Store::HASH/;
14 CWMP::Store::YAML - use YAML as storage
21 my ( $self, $path ) = @_;
22 $full_path = "$path/yaml";
23 warn "## full_path: $full_path" if $debug;
28 my ( $self, $uid ) = @_;
29 my $file = "$full_path/$uid" . $self->extension;
30 warn "## file -> $file" if $debug;
35 my ( $self, $file, $hash ) = @_;
36 DumpFile( $file, $hash );
40 my ( $self, $file ) = @_;
44 sub extension { '.yml' };