Sha256: 38c51b2c1e9656d03f5614c2309474e3435ce3d1691da64d780566747b9d3064
Contents?: true
Size: 952 Bytes
Versions: 2
Compression:
Stored size: 952 Bytes
Contents
#!/usr/bin/env ruby ## loads the active-orient environment ## and starts an interactive shell ## Parameter: production (p) ## development (d) [default] ## test (t) require 'logger' LogLevel = Logger::WARN require File.expand_path(File.dirname(__FILE__) + "/../config/boot") require 'orientdb' if RUBY_PLATFORM == 'java' require 'yaml' puts "ORD points to the REST-Instance, Database: #{ActiveOrient.database}" puts "DB is the API-Instance of the database, DB.db gets the DB-Api-base " if RUBY_PLATFORM == 'java' puts '-'* 35 ns= case ActiveOrient::Model.namespace when Object "No Prefix, just ClassName#CamelCase" else ActiveOrient::Model.namespace.to_s + "{ClassName.camelcase}" end puts "Namespace for model-classes : #{ns}" puts "Allocated Classes (Hierarchy) ( Modelclasses are Camelized ):" puts '-'* 35 puts ORD.class_hierarchy.to_yaml include OrientDB require 'irb' ARGV.clear IRB.start(__FILE__)
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active-orient-0.5 | bin/active-orient-console |
active-orient-0.5 | examples/time_graph/bin/active-orient-console |