[Catalyst-dev] Proposal to the Perl Foundation for CatalystX::Installer

Edmund von der Burg evdb at ecclestoad.co.uk
Tue Apr 29 09:05:54 BST 2008


2008/4/28 Paul Cain <fat.perl.hacker at gmail.com>:
> What if rather than having command line options, you could just use
>  WWW::Mechanize to automatically fill out the forms with a script.
>
>  Something like:
>
>  use WWW::Mechanize;
>  my $mech = WWW::Mechanize->new();
>
>  #Your password shouldn't be hardcoded into a script this way in practice
>  $mech->submit_form(
>         fields      => {
>             username    => 'admin',
>             password    => 'mypass',
>         }
>  );
>
>  $mech->submit_form(
>         fields    => {
>                   dbd       => 'sqlite',
>                   dbname => 'foo.db',
>                   #ect
>         },
>  );
>
>  This would be easier than implementing two seperate interfaces for the
>  command line and GUI, and with a little golf it could probably be done
>  in a few perl -e commands.

This would mean that the command line system would be closely tied to
the GUI part. A change to the GUI might lead to a change in the
command line code too.

Better would be to have the command line and GUI produce a config file
(or similar) which is then used to actually do the installation. This
would decouple the two, and allow for other installation methods in
future.

However it is achieved having a simple way to install a Catalyst app
would be great - so good luck with this.

Cheers,
  Edmund.



More information about the Catalyst-dev mailing list