On 7/27/07, Matt Zukowski <[EMAIL PROTECTED]> wrote:
>
> I'm trying to change the work directory for CachedFilePersistedEngine.
> Here's how I'm doing it:
>
> @engine = OpenWFE::CachedFilePersistedEngine.new(:work_directory => '/
> tmp/openwfe')
>
> Unfortunately this doesn't seem to do anything. The engine continues
> to create the work directory in "./work".
>
> I had a look in rudefinitions.rb where we have this:
>
> def OpenWFE.get_work_directory (dir=nil)
>     dir = DEFAULT_WORK_DIRECTORY unless @application_context
>     dir = @application_context[:work_directory] unless dir
>     dir = DEFAULT_WORK_DIRECTORY unless dir
>
>     FileUtils.makedirs(dir) unless File.exist?(dir)
>     dir
> end
>
> ... so it's trying to read @application_context from the OpenWFE
> module scope, and as far as I can see, this never gets assigned, so
> @application_context will always be nil. Maybe the get_work_directory
> method should belong to the Engine object?

Interesting, it seems that get_work_directory() is called before
@application_context is set somewhere  (in the
CachedFilePersistedEngine).

Filled a bug report for it :
http://rubyforge.org/tracker/index.php?func=detail&aid=12608&group_id=2609&atid=10023


I will fix that asap, thanks for reporting, best regards,

-- 
John Mettraux   -///-   http://jmettraux.openwfe.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenWFEru dev" 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/openwferu-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to