Sha256: b0828a1d820740e805b054fc76c448544623f53220e4f02f77819deaad6c7489

Contents?: true

Size: 456 Bytes

Versions: 4

Compression:

Stored size: 456 Bytes

Contents

#!/usr/bin/env ruby
# -*- coding: utf-8 -*-

# Use to create indexes. Sample is below.
#  create_indexes_for_tengine_core localhost:27017/tengine_production
#
# Default options
#  hostname localhost
#  port     27017
#  database tengine_production
#
require 'tengine_support'
require 'tengine_core'

include Tengine::Support::Mongoid

target = File.expand_path('../lib', File.dirname(__FILE__))
Tengine::Support::Mongoid.create_indexes(target, ARGV.shift)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tengine_core-1.2.2 bin/create_indexes_for_tengine_core
tengine_core-1.2.1 bin/create_indexes_for_tengine_core
tengine_core-1.2.0 bin/create_indexes_for_tengine_core
tengine_core-1.1.0 bin/create_indexes_for_tengine_core