Sha256: 9ed398c9891d1434e6d6d4649c93c9b5bbc8df46606eb3c47ef9eccc4a289dc3

Contents?: true

Size: 464 Bytes

Versions: 4

Compression:

Stored size: 464 Bytes

Contents

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

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

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_resource-1.2.2 bin/create_indexes_for_tengine_resource
tengine_resource-1.2.1 bin/create_indexes_for_tengine_resource
tengine_resource-1.2.0 bin/create_indexes_for_tengine_resource
tengine_resource-1.1.0 bin/create_indexes_for_tengine_resource