docs
[gitmo/MooseX-Storage.git] / lib / MooseX / Storage / IO / AtomicFile.pm
CommitLineData
e64b7302 1
2package MooseX::Storage::IO::AtomicFile;
3use Moose::Role;
4
5use MooseX::Storage::Engine::IO::AtomicFile;
6
7with 'MooseX::Storage::IO::File';
8
9sub store {
10 my ( $self, $filename ) = @_;
11 MooseX::Storage::Engine::IO::AtomicFile->new( file => $filename )->store( $self->freeze() );
12}
13
141;
15
16__END__
17
18=pod
19
20=head1 NAME
21
22MooseX::Storage::IO::AtomicFile
23
24=head1 SYNOPSIS
25
26=head1 DESCRIPTION
27
28=head1 METHODS
29
30=over 4
31
32=item B<load ($filename)>
33
34=item B<store ($filename)>
35
36=back
37
38=head2 Introspection
39
40=over 4
41
42=item B<meta>
43
44=back
45
46=head1 BUGS
47
48All complex software has bugs lurking in it, and this module is no
49exception. If you find a bug please either email me, or add the bug
50to cpan-RT.
51
52=head1 AUTHOR
53
54Chris Prather E<lt>chris.prather@iinteractive.comE<gt>
55
56Stevan Little E<lt>stevan.little@iinteractive.comE<gt>
57
58=head1 COPYRIGHT AND LICENSE
59
60Copyright 2007 by Infinity Interactive, Inc.
61
62L<http://www.iinteractive.com>
63
64This library is free software; you can redistribute it and/or modify
65it under the same terms as Perl itself.
66
67=cut
68
69