Skip to content

Instantly share code, notes, and snippets.

@blaedj
Last active August 29, 2015 13:58
Show Gist options
  • Save blaedj/9960877 to your computer and use it in GitHub Desktop.
Save blaedj/9960877 to your computer and use it in GitHub Desktop.
Instructions for use of redisScipt.rb
  1. Install rubygems
   sudo apt-get install rubygems )
  1. install rvm: (this will also install ruby version 1.9.3)
    curl -sSL https://get.rvm.io | bash -s stable --ruby=1.9.3 
  1. install the redis ruby gem:
    gem install redis 
  1. make a copy of the downloaded script, and modify the classes to match your 'tables'. Make sure they inherit from the base 'Entity' class. You will need to fully de-normalize your tables with respect to foriegn keys. fill in the 'properties' member in each class: :moduleType is the 'column', just make sure you have '=> ""' in there as well to set the initial value to blank.
        @properties = { :moduleType => "", :latitude => "", :longitude => ""}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment