Skip to content

mavenik/rexster-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rexster::Ruby

Gem to interface Ruby applications with Rexster.

Requirement

Rexster server running with at least one graph on it

Installation

Add this line to your application's Gemfile (I haven't pushed this gem yet):

gem 'rexster-ruby', :git => 'https://github.com/mavenik/rexster-ruby.git'

And then execute:

$ bundle

Usage

config/environments/development.rb Rexster::Rest.server_instance = Rexster::Rest.new host: :localhost, port: 8182, graph: :neo4j

In some class, e.g.: app/models/rackster.rb

  class Rackster
    include Rexster
  end

Usage:

rackster = Rackster.new

rackster.g.v(1).script("v.out('RELATION')")

Contributing

This gem is still in it's initial phase and has a huge scope for improvement.

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Ruby wrapper for Rexster

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages