Hola,

And if you need the merb environment in your script you can start it using:

Merb.start_environment(:adapter => 'runner', :environment => 'your environment')

Markus

On Tue, Mar 16, 2010 at 10:55:54AM -0700, Pavel Kunc wrote:
> I agree with Markus.
> 
> You should do this on other layer than in your Merb app. If you want
> to bundle functionality in your app. Than I'd write Importer (so I can
> test it) and than either simple wrapper ruby scrip which will be run
> by Cron or you can have Rake task instead of wrapper script.
> 
> Pavel
> 
> On Mar 16, 4:40 pm, Markus Schirp <[email protected]> wrote:
> > Hi,
> >
> > I would setup a cron job, executing an script doing the imports.
> >
> > --
> >
> > Markus
> >
> >
> >
> > On Tue, Mar 16, 2010 at 08:09:42AM -0700, George Adamson wrote:
> > > Hi there,
> >
> > > I have function to import new files from a folder. How would you set
> > > up merb to run this function periodically?
> >
> > > (I'm fairly new to ruby and merb and so far I have deduced that the
> > > solution will probably involve Merb::Worker, but I don't know how.)
> >
> > > Many thanks,
> > > George
> >
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "merb" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to 
> > > [email protected].
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/merb?hl=en.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "merb" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/merb?hl=en.
> 

-- 
Markus Schirp
Phone:  049 201 / 647 59 63
Mobile: 049 163 / 824 80 69
Web:    www.seonic.net
Email:  [email protected]
Seonic IT-Systems GbR
Anton Shatalov & Markus Schirp
Altenessenerstraße 50
D-45141 Essen

-- 
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/merb?hl=en.

Reply via email to