App-VTide

 view release on metacpan or  search on metacpan

lib/App/VTide/Command/Save.pm  view on Meta::CPAN

=item environment

Saving environment variable changes so specific groups of environment variables
can be set up each time a session is started. This is a multi step process
where the current environment before changes are saved via C<--record=env> then
the changes are made (e.g. running L<perlbrew>, C<nvm>, C<rvm> etc) and those
changes can be viewed via C<--dif-env> and recorded to the C<.vtide.yml> file
via C<--save-env>. This creates a temporary file C<.current-env> to store the
environment variables when C<--record-env> is run.

=back

=head1 SUBROUTINES/METHODS

=head2 C<run ()>

Need to implement

=head2 C<save ($name, @files)>

Saves new file group C<$name> with the file or glob patters from C<@files>
into the local C<.vtide.yml> config file.

=head2 C<record_env ()>

Save the current environment variables to a temporary file

=head2 C<diff_env ()>

Find the environment keys that differ in the current environment vs that stored
in the temporary file

=head2 C<save_env ()>

Save environment differences to the projects C<.vtide.yml> file

=head2 C<details_sub ()>

Returns the commands details.

=head1 ATTRIBUTES

=head2 C<env_store>

The name of the temporary file for storing the environment variables

=head1 HOOKS

=head2 C<save_record_env ()>

=head2 C<save_save_env ( $diff_env )>

=head1 DIAGNOSTICS

=head1 CONFIGURATION AND ENVIRONMENT

=head1 DEPENDENCIES

=head1 INCOMPATIBILITIES

=head1 BUGS AND LIMITATIONS

There are no known bugs in this module.

Please report problems to Ivan Wills (ivan.wills@gmail.com).

Patches are welcome.

=head1 AUTHOR

Ivan Wills - (ivan.wills@gmail.com)

=head1 LICENSE AND COPYRIGHT

Copyright (c) 2016 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077).
All rights reserved.

This module is free software; you can redistribute it and/or modify it under
the same terms as Perl itself. See L<perlartistic>.  This program is
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

=cut



( run in 1.160 second using v1.01-cache-2.11-cpan-39bf76dae61 )