1
# backends.rb: all the backends
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; either version 2 of the License, or
6
# (at your option) any later version.
8
# This program is distributed in the hope that it will be useful, but
9
# WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
# General Public License for more details.
13
# You should have received a copy of the GNU General Public License
14
# along with this program; if not, write to the Free Software
15
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
19
require 'ctioga2/data/backends/backend'
21
# We try to look for all files under a ctioga2/metabuilder/types
22
# directory anywhere on the $: path
26
Dir[dir + '/ctioga2/data/backends/backends/**/*'].each do |f|
27
f =~ /ctioga2\/data\/backends\/backends\/(.*)\.[^.]+$/
32
for file in files.uniq
34
require "ctioga2/data/backends/backends/#{file}"
36
warn { "There was a problem trying to load 'ctioga2/data/backends/backends/#{file}': " }
37
warn { "#{e.inspect}" }