Forum: Rails Engines development Rake tasks to copy files?

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.
Efe398b3b5436b0a8d4430090e8f86ea?d=identicon&s=25 Subimage (Guest)
on 2006-02-22 08:21
How/when are the files in my engine's public folder copied over into
engine_files?

Is there a rake task or something I can call to transfer it over? I
looked but I'm feeling that I might be missing something...

Thanks again.

- s
00e3a96684ab390a350b0271e98741d3?d=identicon&s=25 Nshbrown Nshbrown (nshb)
on 2006-02-22 10:19
(Received via mailing list)
They are copied over each time fastcgi, or whatever core serving
process, is
spawned. This is done automatically.

If you view in your log files, you will see that after a fresh restart,
the
log files will have make record of all files copied over.

I haven't yet come across where this is done specifically in the code,
but
as long as you have the Engines.start :my_engine, your files will be
copied
over, and the app/model, app/controllers, etc will be added to the load
paths.

-Nb

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Nathaniel S. H. Brown                           http://nshb.net
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
05d703f649ef1d07e78d7b479fb4c4ac?d=identicon&s=25 James Adam (Guest)
on 2006-02-23 02:47
(Received via mailing list)
The files are called whenever the engine is 'started', i.e. whenever
your environment.rb file is loaded. If any of the files have not
changed, they will be skipped.

It shouldn't be too hard to write a rake task which calls the
appropriate methods from the Engines plugin, but would there be a
point (since loading th engines plugin requires the Rails environment,
which in turn means that environment.rb gets loaded and the files are
sync'd anyway ;-))

james

On 2/22/06, Nathaniel S. H. Brown <nshb@inimit.com> wrote:
>
> > Behalf Of Subimage
> > Thanks again.
> >
>
> _______________________________________________
> engine-developers mailing list
> engine-developers@lists.rails-engines.org
> http://lists.rails-engines.org/listinfo.cgi/engine...
>


--
* J *
  ~
This topic is locked and can not be replied to.