Sha256: 298fe5bba71c4cbcb85082cee449dde47ee591f4e3a6d497138c55352f7f1f44

Contents?: true

Size: 1 KB

Versions: 12

Compression:

Stored size: 1 KB

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'
require 'byebug'

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.5.0 bin/belated
belated-0.4.4 bin/belated
belated-0.4.3 bin/belated
belated-0.4.2 bin/belated
belated-0.4.1 bin/belated
belated-0.4.0 bin/belated
belated-0.3.3 bin/belated
belated-0.3.2 bin/belated
belated-0.3.1 bin/belated
belated-0.3.0 bin/belated
belated-0.2.0 bin/belated
belated-0.1.0 bin/belated