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.5.6 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.5.5 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.5.4 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.5.3 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.5.2 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.5.1 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.4.3 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.4.2 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.4.1 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.4.0 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.3.12 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.3.11 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.3.10 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.3.9 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.3.8 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.3.7 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.3.6 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.3.5 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.3.4 lib/universe_compiler/universe/persistence.rb
universe_compiler-0.3.3 lib/universe_compiler/universe/persistence.rb