garu/Data-Printer — pull request #34 by bessarabov (2012-09-12 08:26:00+00:00)
Title: Config file .dataprinter can be a symbolic link

I'm was using old version of Data::Printer for a long time and it worked
perfectly.

Yesterday I've decided to update DDP to the latest version (witch is 0.33).
I've installed in on my machine but when I run the script that was using DDP I
got the error:

rc file '/home/bessarabov/.dataprinter' doesn't look like a plain file. Skipping.

I switched back to the previous version of DDP and started discovering. I've
found that this is because my file ~/.dataprinter is a symbolic link. This
logic was added to the lib/Data/Printer.pm file in commit 47b61b23 Thu Feb 23
03:15:52 2012 -0200.

Now I will try to explaing why I need the ~/.dataprinter to be a symbolic
link. I have several computers where I work. It is a work notebook with
ubuntu, personal ubuntu notebook and a several servers. I work mostly in
terminal and some time ago I've understood that I need some system that will
help me to store all my configuration files (dot files) to be in order. I want
to have possobility to change some config file and it will change on all other
computers. I had several attempts to solve this problem and finally I've found
the solutin. I have a git repository that lives on all my computers in ~/felix
It containg all my configuration files and a script that creates symbolic
links from the files in that directory to my home directory. This system work
perfectly - I'm getting new server - I log in, clone git repository with my
configs, run one small script, logout and after loggin in again I have all my
usual environment.

My system for managing config files is called felix and it lives at
[GitHub][1].

[1]: https://github.com/bessarabov/felix

I'm syncing .dataprinter across all my computers with felix, but the new
version of DDP does not allow .dataprinter to be a symbolic link and because
of it I can't sync .dataprinter.

Here is a fix that allows .dataprinter to be a symbolic link. I really hope
that you will accept it.

Thank you for reading such a long text =)