lib/core/core_internal.rb
# function prepare of loading a local process
function prepare of loading a local process
function prepare of loading a local process
def _process_local_to_load(index, my_process, a_process)
      my_process[:process_path] = a_process[:process_path]
      if a_process[:process_name].nil?
        my_process[:process_name] = File.basename(a_process[:process_path])
      else
        my_process[:process_name] = a_process[:process_name]
      end
      if a_process[:controller_path]
        my_process[:controller_path] = a_process[:controller_path]
      else
        my_process[:controller_name] = a_process[:controller_name]
      end
      defaults_file = a_process[:defaults]
      if defaults_file.nil?
        path = a_process[:process_path]
        path['.rb'] = ''
        defaults_file = File.join(path, 'defaults.yaml')
      end
      _process_load_data(config, index,
                         a_process[:process_name], defaults_file,
                         PRC::SectionConfig)
      data_file = a_process[:data]
      if defaults_file.nil?
        path = a_process[:process_path]
        path['.rb'] = ''
        data_file = File.join(path, 'data.yaml')
      end
      _process_load_data(Lorj.data, index,
                         a_process[:process_name], data_file)
      my_process
    end
def _process_local_to_load ( index , my_process , a_process ) my_process [ :process_path ] = a_process [ :process_path ] if a_process [ :process_name ] . nil? my_process [ :process_name ] = File . basename ( a_process [ :process_path ] ) else my_process [ :process_name ] = a_process [ :process_name ] end if a_process [ :controller_path ] my_process [ :controller_path ] = a_process [ :controller_path ] else my_process [ :controller_name ] = a_process [ :controller_name ] end defaults_file = a_process [ :defaults ] if defaults_file . nil? path = a_process [ :process_path ] path [ '.rb' ] = '' defaults_file = File . join ( path , 'defaults.yaml' ) end _process_load_data ( config , index , a_process [ :process_name ] , defaults_file , PRC :: SectionConfig ) data_file = a_process [ :data ] if defaults_file . nil? path = a_process [ :process_path ] path [ '.rb' ] = '' data_file = File . join ( path , 'data.yaml' ) end _process_load_data ( Lorj . data , index , a_process [ :process_name ] , data_file ) my_process end
function prepare of loading a local process
function prepare of loading a local process
# TODO: Implement Object definition as a config layer. # _process_load_definition(definition, index, a_process[:process_name], #                          a_process[:definition])
index
<not_specific>
my_process
<not_specific>
a_process
<not_specific>