Forum: Rails Engines development Engine installer

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bb46488d2c90d51f366cafc776e2b3ad?d=identicon&s=25 Jeff Lindsay (progrium)
on 2006-04-04 13:38
(Received via mailing list)
I just figured out a pretty cool way to automate the installation of
engines (or well, any kind of plugin)...

Plugins now have an install.rb that hooks into the plugin installation
process. You can make a new plugin with just this file, called
my_installer for example, and then do something like this in it:

require 'commands/plugin'
# install the engines plugin
Commands::Plugin.parse! ['install',
'http://svn.rails-engines.org/plugins/engines']
# install some engines
Commands::Plugin.parse! ['install', 'http://my-cool-engine']
Commands::Plugin.parse! ['install', 'http://my-other-cool-engine']
# install another really cool plugin ; )
Commands::Plugin.parse! ['install',
'http://progrium.com/svn/vantage/trunk/widgets']
# get rid of the installer
Commands::Plugin.parse! ['remove', 'my_installer']

Now if you put this up somewhere, you can install all these things
into a new app with:

$ script/plugin install http://example.com/svn/my_installer

I imagine you could do a lot of other cool stuff this way! Let me know
if this is already a well known practice or something. :P

--
Jeff Lindsay
http://blogrium.com/
05d703f649ef1d07e78d7b479fb4c4ac?d=identicon&s=25 James Adam (Guest)
on 2006-04-04 15:01
(Received via mailing list)
Very interesting Jeff :)

It would certainly be good if when you tried to install an engine, it
checked for the engines plugin and installed it if necessary - fancy
coding this up as a patch to the engine generator and submitting it?

- james

On 4/4/06, Jeff Lindsay <progrium@gmail.com> wrote:
> 'http://svn.rails-engines.org/plugins/engines']
> into a new app with:
> engine-developers mailing list
> engine-developers@lists.rails-engines.org
> http://lists.rails-engines.org/listinfo.cgi/engine...
>


--
* J *
  ~
Bb46488d2c90d51f366cafc776e2b3ad?d=identicon&s=25 Jeff Lindsay (progrium)
on 2006-04-04 15:05
(Received via mailing list)
Oooo, great idea. I'm on it.

-jeff

On 4/4/06, James Adam <james.adam@gmail.com> wrote:
> > engines (or well, any kind of plugin)...
> > Commands::Plugin.parse! ['install', 'http://my-cool-engine']
> > $ script/plugin install http://example.com/svn/my_installer
> > http://lists.rails-engines.org/listinfo.cgi/engine...
>
--
Jeff Lindsay
http://blogrium.com/
Bb46488d2c90d51f366cafc776e2b3ad?d=identicon&s=25 Jeff Lindsay (progrium)
on 2006-04-04 15:29
(Received via mailing list)
Done. http://dev.rails-engines.org/tickets/122

On 4/4/06, Jeff Lindsay <progrium@gmail.com> wrote:
> >
> > > require 'commands/plugin'
> > > Commands::Plugin.parse! ['remove', 'my_installer']
> > > Jeff Lindsay
> >   ~
>
--
Jeff Lindsay
http://blogrium.com/
05d703f649ef1d07e78d7b479fb4c4ac?d=identicon&s=25 James Adam (Guest)
on 2006-04-04 15:32
(Received via mailing list)
Thanks :)

- james

On 4/4/06, Jeff Lindsay <progrium@gmail.com> wrote:
> > > It would certainly be good if when you tried to install an engine, it
> > > > process. You can make a new plugin with just this file, called
> > > > Commands::Plugin.parse! ['install',
> > > > if this is already a well known practice or something. :P
> > >
> > --
> engine-developers@lists.rails-engines.org
> http://lists.rails-engines.org/listinfo.cgi/engine...
>


--
* J *
  ~
Bb46488d2c90d51f366cafc776e2b3ad?d=identicon&s=25 Jeff Lindsay (progrium)
on 2006-04-04 16:28
(Received via mailing list)
You know, we could even push Engines.start :whatever into the
environment file here. :P

I'm doing that in my engines, but I don't know if it's something we'd
want as default engine behavior...

-jeff

On 4/4/06, James Adam <james.adam@gmail.com> wrote:
> > > -jeff
> > > > On 4/4/06, Jeff Lindsay <progrium@gmail.com> wrote:
> > > > > 'http://svn.rails-engines.org/plugins/engines']
> > > > > into a new app with:
> > > > > engine-developers mailing list
> > > > engine-developers@lists.rails-engines.org
> > --
> * J *
>   ~
> _______________________________________________
> engine-developers mailing list
> engine-developers@lists.rails-engines.org
> http://lists.rails-engines.org/listinfo.cgi/engine...
>


--
Jeff Lindsay
http://blogrium.com/
05d703f649ef1d07e78d7b479fb4c4ac?d=identicon&s=25 James Adam (Guest)
on 2006-04-04 16:37
(Received via mailing list)
By 'push' I presume you mean write (append) it to the file? I guess it
could be done... Probably the best thing for the moment my be sticking
that information (what you're doing at the moment) up on the wiki.

- james

On 4/4/06, Jeff Lindsay <progrium@gmail.com> wrote:
> >
> > > > On 4/4/06, James Adam <james.adam@gmail.com> wrote:
> > > > > > engines (or well, any kind of plugin)...
> > > > > > Commands::Plugin.parse! ['install', 'http://my-cool-engine']
> > > > > > $ script/plugin install http://example.com/svn/my_installer
> > > > > > 
http://lists.rails-engines.org/listinfo.cgi/engine...
> > > > >
> > > http://blogrium.com/
> > _______________________________________________
> engine-developers mailing list
> engine-developers@lists.rails-engines.org
> http://lists.rails-engines.org/listinfo.cgi/engine...
>


--
* J *
  ~
Bb46488d2c90d51f366cafc776e2b3ad?d=identicon&s=25 Jeff Lindsay (progrium)
on 2006-04-04 16:52
(Received via mailing list)
Okay, sounds good. Err, I mean, done:
http://www.rails-engines.org/wiki/pages/Developer+Tips

On 4/4/06, James Adam <james.adam@gmail.com> wrote:
> > I'm doing that in my engines, but I don't know if it's something we'd
> > > > Done. http://dev.rails-engines.org/tickets/122
> > > > > > checked for the engines plugin and installed it if necessary - fancy
> > > > > > > my_installer for example, and then do something like this in it:
> > > > > > > 'http://progrium.com/svn/vantage/trunk/widgets']
> > > > > > >
> > > > > > --
> > > > > Jeff Lindsay
> > > > http://lists.rails-engines.org/listinfo.cgi/engine...
> > >
>
>
> --
> * J *
>   ~
> _______________________________________________
> engine-developers mailing list
> engine-developers@lists.rails-engines.org
> http://lists.rails-engines.org/listinfo.cgi/engine...
>


--
Jeff Lindsay
http://blogrium.com/
This topic is locked and can not be replied to.