lib/openwfe/storage/yamlfilestorage.rb in openwferu-0.9.12 vs lib/openwfe/storage/yamlfilestorage.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" # # Nicolas Modrzyk at openwfe.org @@ -48,21 +46,19 @@ require 'openwfe/utils' require 'openwfe/service' require 'openwfe/expressions/flowexpression' require 'openwfe/expressions/raw_xml' - - # + #-- # making sure classes in those files are loaded # before their yaml persistence is tuned # (else the reopening of the class is interpreted as # a definition of the class...) + #++ module OpenWFE - - # # Stores OpenWFEru related objects into yaml encoded files. # This storage is meant to look and feel like a Hash. # class YamlFileStorage @@ -74,11 +70,10 @@ super() service_init(service_name, application_context) - @basepath = path - #@basepath = OpenWFE::clean_path(@basepath) + @basepath = get_work_directory + path @basepath += "/" unless @basepath[-1, 1] == "/" FileUtils.makedirs @basepath end