[Padre-dev] Padre::FirstTime::Vendor
Jerome Quelin
jquelin at gmail.com
Mon Feb 15 22:59:36 PST 2010
On 10/02/16 08:48 +0200, Gabor Szabo wrote:
> There are two cases of first run of Padre
> 1) very first run
> 2) upgrade of Padre
>
> We might want to address both issues in the same place.
> We could have a module Padre::FirstTime that is loaded
> 1) if .padre did not exist
> 2) if the current version of Padre is different from version number
> recored in config.yml (I think it is not there yet, we will need to
> add it).
>
> When Padre::FirstTime is loaded it searches @INC for any module in the
> Padre::FirstTime::* name space. Loads them and calls one of the following
> methods
>
> Padre::FirstTime::*->first_time
> Padre::FirstTime::*->upgrade
if you go down this train, you will need to pass $from_version and
$to_version to make sure that a) the module knows how to handle the new
version and b) the module does things differently depending on the
starting point.
that being said...
> There might be several packages under Padre::FirstTime::*, the order
> of calling is random thought we could actually make them be stacked on
> each other by makig then inherit from each other. e.g.
>
> Padre::FirstTime::Ubuntu isa Padre::FirstTime::Debian
i'm not really that enthusiastic about this. i don't really see the
need. i'd rather be sure that padre has some sane defaults, that may
differ depending on the os platform.
can you elaborate which problem you're trying to nail down?
jérôme
--
jquelin at gmail.com
More information about the Padre-dev
mailing list