lib/openwfe/participants/participants.rb in openwferu-0.9.6 vs lib/openwfe/participants/participants.rb in openwferu-0.9.7

- old
+ new

@@ -66,18 +66,18 @@ # The constructor expects as a unique optional param either the # application_context either the 'output' dir for the participant. # def initialize (context_or_dir=nil) - if context_or_dir.kind_of? Hash - @application_context = context_or_dir - @workdir = @application_context[:work_directory] - else - @workdir = context_or_dir - end - - @workdir = OpenWFE::DEFAULT_WORK_DIRECTORY unless @workdir - @workdir = "#{@workdir}/out/" + #if context_or_dir.kind_of? Hash + # @application_context = context_or_dir + # @workdir = @application_context[:work_directory] + #else + # @workdir = context_or_dir + #end + #@workdir = OpenWFE::DEFAULT_WORK_DIRECTORY unless @workdir + #@workdir = "#{@workdir}/out/" + @workdir = OpenWFE::get_work_directory(context_or_dir) + "/out/" @reply_anyway = false end #