Sha256: 6a916b2f9cddb7b1776648477f8e1b53e868c50bc432ce30004720db1bd32d23

Contents?: true

Size: 454 Bytes

Versions: 4

Compression:

Stored size: 454 Bytes

Contents

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

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

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_job-1.2.2 bin/create_indexes_for_tengine_job
tengine_job-1.2.1 bin/create_indexes_for_tengine_job
tengine_job-1.2.0 bin/create_indexes_for_tengine_job
tengine_job-1.1.0 bin/create_indexes_for_tengine_job