lib/openwfe/rudefinitions.rb in openwferu-0.9.12 vs lib/openwfe/rudefinitions.rb in openwferu-0.9.12.863

- old
+ new

@@ -28,12 +28,10 @@ # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. #++ # -# $Id: definitions.rb 2725 2006-06-02 13:26:32Z jmettraux $ -# # # "made in Japan" # @@ -66,24 +64,9 @@ # # some file storage default values DEFAULT_WORK_DIRECTORY = 'work' - - # - # Returns the work directory for the OpenWFE[ru] application context - # (if any). - # - 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 # # A mixin for easy OpenWFE service lookup # (assumes the presence of an application context instance var) #