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?


--~--~---------~--~----~------------~-------~--~----~
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