Sha256: 20ea18a0521d1fe81979dc73d6ed3a33b91ddfa65a100bb2a14813165e0c0dcd

Contents?: true

Size: 1007 Bytes

Versions: 12

Compression:

Stored size: 1007 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

$TESTING = false
$LOAD_PATH.unshift File.expand_path("#{File.dirname(__FILE__)}/../lib")
require 'belated'
require 'optparse'

OptionParser.new { |opts|
  opts.banner = 'Usage: belated [options]'

  opts.separator ''
  opts.separator 'Options:'

  opts.on('-r=RAILS', '--rails=RAILS', 'Load Rails or not, default true') do |rails|
    Belated.config.rails = rails == 'true'
  end

  opts.on('-r_path=PATH', '--rails_path=PATH', 'Path to Rails') do |path|
    Belated.config.rails_path = path
  end

  opts.on('-w=WORKERS', '--workers=WORKERS', 'Number of workers, default 1') do |workers|
    Belated.config.workers = workers.to_i
  end

  opts.on('-e=ENV', '--env=ENV', 'Environment, default development') do |env|
    Belated.config.env = env
  end

  opts.on('-c=CONNECT', '--connect=CONNECT', 'Start dRuby connection, default true') do |connect|
    Belated.config.connect = connect == 'true'
  end
}.parse!

instance = Belated.instance
instance.start

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
belated-0.6.4 bin/belated
belated-0.6.3 bin/belated
belated-0.6.2 bin/belated
belated-0.6.1 bin/belated
belated-0.6.0 bin/belated
belated-0.5.7 bin/belated
belated-0.5.6 bin/belated
belated-0.5.5 bin/belated
belated-0.5.4 bin/belated
belated-0.5.3 bin/belated
belated-0.5.2 bin/belated
belated-0.5.1 bin/belated