Sha256: fd8648dc12a6711aeb8f1647d440c6186181ba4491af818ad539d238d6840ac2

Contents?: true

Size: 558 Bytes

Versions: 7

Compression:

Stored size: 558 Bytes

Contents

#!/usr/bin/env jruby
require File.expand_path(File.dirname(__FILE__) + "/../lib/orientdb")

if ARGV.include?('test:db')
  GEM_ROOT  = File.expand_path(File.join(File.dirname(__FILE__), '..'))
  TEMP_DIR  = Dir.pwd + '/tmp'

  TEST_DB_PATH = "#{TEMP_DIR}/databases/db_#{rand(999) + 1}"

  puts ">> GEM_ROOT     : #{GEM_ROOT}"
  puts ">> TEST_DB PATH : #{TEST_DB_PATH}"

  require 'fileutils'
  FileUtils.mkdir_p TEST_DB_PATH
  DB = OrientDB::Database.new("local:#{TEST_DB_PATH}/test").create
end

include OrientDB

require 'irb'
ARGV.clear
IRB.start(__FILE__)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
orientdb-0.0.11-jruby bin/orientdb_console
orientdb-0.0.10-jruby bin/orientdb_console
orientdb-0.0.9-jruby bin/orientdb_console
orientdb-0.0.8-jruby bin/orientdb_console
orientdb-0.0.7-jruby bin/orientdb_console
orientdb-0.0.6-jruby bin/orientdb_console
orientdb-0.0.5-jruby bin/orientdb_console