The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Name

Yakuake::Sessions::TraitFor::FileData - Dumps and loads session data

Synopsis

   use Moo;

   extends 'Yakuake::Sessions::Base';
   with    'Yakuake::Sessions::TraitFor::FileData';

Description

This is a Moo::Role which dumps and loads session data

Configuration and Environment

Defines the following attributes;

force

Overwrite the output file if it already exists

Subroutines/Methods

dump - Dumps the current sessions to file

   $exit_code = $self->dump;

For each tab it captures the current working directory, the command being executed, the tab title text, and which tab is currently active

load - Load the specified profile

   $exit_code = $self->load( $data_only_flag );

Tabs are recreating with their title text, current working directories and executing commands. If the $data_only_flag is true returns the session data information but does not apply it

Diagnostics

None

Dependencies

Class::Usul
File::DataClass
Moo::Role

Incompatibilities

There are no known incompatibilities in this module

Bugs and Limitations

There are no known bugs in this module. Please report problems to the address below. Patches are welcome

Acknowledgements

Larry Wall - For the Perl programming language

Author

Peter Flanigan, <pjfl@cpan.org>

License and Copyright

Copyright (c) 2014 Peter Flanigan. All rights reserved

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic

This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE