Commit | Line | Data |
e64b7302 |
1 | |
2 | package MooseX::Storage::IO::AtomicFile; |
3 | use Moose::Role; |
4 | |
5 | use MooseX::Storage::Engine::IO::AtomicFile; |
6 | |
7 | with 'MooseX::Storage::IO::File'; |
8 | |
9 | sub store { |
10 | my ( $self, $filename ) = @_; |
11 | MooseX::Storage::Engine::IO::AtomicFile->new( file => $filename )->store( $self->freeze() ); |
12 | } |
13 | |
14 | 1; |
15 | |
16 | __END__ |
17 | |
18 | =pod |
19 | |
20 | =head1 NAME |
21 | |
22 | MooseX::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 | |
48 | All complex software has bugs lurking in it, and this module is no |
49 | exception. If you find a bug please either email me, or add the bug |
50 | to cpan-RT. |
51 | |
52 | =head1 AUTHOR |
53 | |
54 | Chris Prather E<lt>chris.prather@iinteractive.comE<gt> |
55 | |
56 | Stevan Little E<lt>stevan.little@iinteractive.comE<gt> |
57 | |
58 | =head1 COPYRIGHT AND LICENSE |
59 | |
60 | Copyright 2007 by Infinity Interactive, Inc. |
61 | |
62 | L<http://www.iinteractive.com> |
63 | |
64 | This library is free software; you can redistribute it and/or modify |
65 | it under the same terms as Perl itself. |
66 | |
67 | =cut |
68 | |
69 | |