2 package MooseX::Storage::Engine::IO::AtomicFile;
9 extends 'MooseX::Storage::Engine::IO::File';
12 my ($self, $data) = @_;
13 my $fh = IO::AtomicFile->new($self->file, 'w')
14 || confess "Unable to open file (" . $self->file . ") for storing : $!";
17 || confess "Could not write atomic file (" . $self->file . ") because: $!";
28 MooseX::Storage::Engine::IO::AtomicFile - The actually atomic file storage mechanism.
32 This provides the actual means to store data to a file atomically.
42 =item B<store ($data)>
56 All complex software has bugs lurking in it, and this module is no
57 exception. If you find a bug please either email me, or add the bug
62 Chris Prather E<lt>chris.prather@iinteractive.comE<gt>
64 Stevan Little E<lt>stevan.little@iinteractive.comE<gt>
66 =head1 COPYRIGHT AND LICENSE
68 Copyright 2007 by Infinity Interactive, Inc.
70 L<http://www.iinteractive.com>
72 This library is free software; you can redistribute it and/or modify
73 it under the same terms as Perl itself.