module Agora
  class Importer

    Path.register_loader(".kaos") do |file|
      unless exporter = ENV['KAOSTOOLS_RELATIONAL_EXPORTER']
        raise "Unable to use KAOSTools, please set KAOSTOOLS_RELATIONAL_EXPORTER"
      end
      ::JSON.load `mono #{exporter} #{file}`
    end

    def self.load(path)
      Model.new Path(path).load
    end

  end # class Importer
end # module Agora

module Agora
  class Importer

    Path.register_loader(".kaos") do |file|
      unless exporter = ENV['KAOSTOOLS_RELATIONAL_EXPORTER']
        raise "Unable to use KAOSTools, please set KAOSTOOLS_RELATIONAL_EXPORTER"
      end
      ::JSON.load `mono --debug #{exporter} #{file}`
    end

    def self.load(path)
      Model.new Path(path).load
    end

  end # class Importer
end # module Agora

Use --debug when delegating to mono.
Use --debug when delegating to mono.
