Sha256: 79f08afa14f7044b0ad244f56454cf77e3cdb276cf8ca7b77e8f97006f16e3b7

Contents?: true

Size: 526 Bytes

Versions: 29

Compression:

Stored size: 526 Bytes

Contents

module UniverseCompiler
  module Universe

    module Persistence

      include UniverseCompiler::Persistence::Management

      def export(uri)
        engine = persistence_engine.new self, uri
        engine.export_universe
      end

      def import(uri, force: false, stop_on_error: true, &block)
        engine = persistence_engine.new self, uri
        clear if force
        engine.import_universe recursive: true, stop_on_error: stop_on_error, &block
        resolve_entities_reference
      end

    end

  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
universe_compiler-0.3.2 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.3.1 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.3.0 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.2.16 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.2.15 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.2.14 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.2.13 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.2.12 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.2.11 lib/universe_compiler/universe/persistence.rb