Undo monad for permission changes
ghenry
created: 2006-05-02 05:12:20

Just thinking if this is a good idea or not.

I am implementing a Command Line tool called create_dovecot_shares, to help in creating Dovecot Shared Folders, which will create lots of symlinks in a Maildir and change the permissions of lots of folders/files.

What I am planning to do is use Storable to save all the changes I have made via a HoH, with a history of 10 runs.

With the --restore option, it will rollback the changes, e.g. --restore 5, which put the perms back to 5 runs ago.

Is this a sane thing to do I wonder?

Gavin.

Walking the road to enlightenment... I found a penguin and a camel on the way.....
Fancy a yourname@perl.me.uk? Just ask!!!
Re: Undo monad for permission changes
created: 2006-05-02 10:52:18

Sounds great, from a user perspective.

I suspect you'll go insane during the implementation, however. ;-)

We're building the house of the future together.

perlmonks.org content © perlmonks.org and ghenry, jdporter

prlmnks.org © 2006 edmund von der burg (eccles & toad)

v 0.03