Adding a service to a component in the deployer... from a script?

Hi Charles,

On Thu, Jun 30, 2011 at 11:39:19AM +0200, Charles Lesire-Cabaniols wrote:

> I want to add the 'scripting' service to my component from the deployer.
> The way I am used to do this is:
> Deployer > cd MyComponent
> MyComponent > .provide scripting
> Now, I want to automate it by loading a script at the deployer start.
> However, the 'cd' command is not available in scripting... and I found
> no alternative way, such as:
> MyComponent.provide scripting
> and .provide only accepts one argument (the service to load).
> Is there a way to do this service loading from scripts?

You can use the deployer method

loadService(component-name, service-name)

to load any service into any component.

Best regards