0.0
No commit activity in last 3 years
No release in over 3 years
Octocore is the core framework of Octomatic Enterprise. It contains all the core models, tasks, actions etc for MongoDB
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 2.5.0, ~> 2.5.0
>= 3.4.0, ~> 3.4.0

Runtime

>= 0.9.5, ~> 0.9.5
>= 1.0.1, ~> 1.0.1
>= 1.12.5, ~> 1.12
>= 2.5.0, ~> 2.5.1
>= 1.0.17, ~> 1.0.17
>= 0.9.2, ~> 0.9.2
>= 0.6.0, ~> 0.6.1
>= 0.4.1, ~> 0.4.1
>= 1.8.1, ~> 1.8.1
>= 1.0.53, ~> 1.0
~> 0.13.1
>= 11.1.0, ~> 11.1.0
>= 3.2.0, ~> 3.2.2
>= 0.0.4, ~> 0.0.4
>= 1.26.0, ~> 1.26.0
>= 4.1.0, ~> 4.1.0
>= 0.3.2, ~> 0.3.2
>= 1.3.0, ~> 1.3.0
 Project Readme

octocore-mongo

This is the Octomatic Enterprise Core gem for MongoDB. It provides most of the ORM stuff for MongoDB. Class and modules for different tables.

Installting

gem install octocore-mongo

In case you are using bundler, you need to add something like this to your Gemfile:

gem 'octocore-mongo', :git => 'git@github.com:octoai/gem-octocore-mongo.git'

DB Migrations

OctoAdmin CLI

This gem comes with a handy utility called octocore-admin-mongo. You can use this utility for db migrations, reset and init.

$ octocore-admin-mongo action path/to/config/dir

Where

  • action: The action to be performed. One of init, migrate or reset
  • /path/to/config/dir: The path where your config dir is placed

Development

Clone the repo

$ git clone git@github.com:octoai/gem-octocore-mongo.git

Building

$ ./bin/clean_setup.sh

Specs

$ rake spec

Verifying connectivity

You can use the following set of commands in irb to verify all things working with this gem. Execute it from irb in PROJ_DIR.

require 'octocore-mongo'
config_dir = '/path/to/config/dir'
Octo.connect_with_config_file config_dir

Creating fake stream

It ships with a utility called fakestream. It will automatically stream random data. To use just open your console and type

$ fakestream-mongo /path/to/config/dir