Re: [PEAR-DEV] Custom file role
by Brett Bieber other posts by this author
Nov 28 2006 8:31AM messages near this date
[PEAR-DEV] Re: Custom file role
|
Re: [PEAR-DEV] Custom file role
Hey Tony,
On 11/28/06, Tony Bibbs <tony@[...].com> wrote:
> I'm trying to use PEAR for deploying an entire web application as
> opposed to just libraries. My scenario is simple...everything in my
> tarball needs to go into a web tree. I've created a Web role (Web.php)
> extending the Custom role and I've got it packaged up and installing
> fine to the PEAR/Installer/Role directory.
>
> Problem is when I try to deploy my app using the Web role I'm getting:
>
> PEAR_PackageFileManager2 Error: Invalid file role passed to addRole,
> must be one of "data, doc, php, script, test", was passed "web"
I believe you have to tell PFM2 that you're using an additional role,
and where to get that role from. So that when people install your
package the installer can see that you're using a file role that they
need to have (provided by a specific package).
I have used: $packagefilemanager-> addUsesRole('web', 'Role_Web',
'pearified.com');
Which uses Role_Web from http://pearified.com/index.php?package=Role_Web
Sounds like you're trying to do what Clay's Role_Web was intended to do.
> I'm not 100% how all this stuff stitches together but I noticed in the
> PEAR/Installer/Role directory each role PHP script has a corresponding
> .xml file. Is that my problem? I'm guessing I'm missing a simple step
> here.
>
> --Tony
>
> --
> PEAR Development Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
-Brett
http:saltybeagle.com aim:ianswerq
--
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Tony Bibbs
Laurent Laville
Brett Bieber
Christian Weiske
Arnaud Limbourg
Arnaud Limbourg
Arnaud Limbourg
|