lib/openwfe/expool/fs_expstorage.rb
#
# Loads the flow expression at the given path
#
Loads the flow expression at the given path
Loads the flow expression at the given path
def load_fexp (path)
      return nil unless File.exist?(path)
      fexp = File.open(path, 'r') { |f|
        s = f.read
        s[0, 5] == '--- !' ? YAML.load(s) : Marshal.load(s)
      }
      fexp.application_context = @application_context if fexp
      fexp
    end
def load_fexp ( path ) return nil unless File . exist? ( path ) fexp = File . open ( path , 'r' ) { | f | s = f . read s [ 0 , 5 ] == '--- !' ? YAML . load ( s ) : Marshal . load ( s ) } fexp . application_context = @application_context if fexp fexp end
Loads the flow expression at the given path
Loads the flow expression at the given path
path
<not_specific>