Sha256: 3834240a550f5db24c7b8be1be4fa6c854a419f8b7781c71f0297216f9bc5b60

Contents?: true

Size: 877 Bytes

Versions: 20

Compression:

Stored size: 877 Bytes

Contents

$LOAD_PATH.unshift File.expand_path('..', File.dirname(__FILE__))

require 'runit-man/app'

RunitMan::App.set :active_services_directory, ENV['RUNIT_ACTIVE_SERVICES_DIR'] || RunitMan::App::DEFAULT_ACTIVE_SERVICES_DIR
RunitMan::App.set :all_services_directory,    ENV['RUNIT_ALL_SERVICES_DIR'] || RunitMan::App::DEFAULT_ALL_SERVICES_DIR
RunitMan::App.set :runit_logger,              ENV['RUNIT_LOGGER'] || RunitMan::App::DEFAULT_LOGGER
RunitMan::App.set :read_write_mode,           (ENV['RUNIT_READWRITE_MODE'] || 'rw').to_sym

if ENV['RUNIT_MAN_VIEW_FILES']
  ENV['RUNIT_MAN_VIEW_FILES'].split(/\s*\,\s*/).each do |floc|
    RunitMan::App.enable_view_of(floc)
  end
end

if ENV['RUNIT_MAN_CREDENTIALS']
  ENV['RUNIT_MAN_CREDENTIALS'].split(/\s*\,\s*/).each do |cred|
    RunitMan::App.add_user(*(cred.split(':', 2)))
  end
end

RunitMan::App.prepare_to_run

run RunitMan::App

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
runit-man-2.4.14 lib/runit-man/config.ru
runit-man-2.4.12 lib/runit-man/config.ru
runit-man-2.4.11 lib/runit-man/config.ru
runit-man-2.4.10 lib/runit-man/config.ru
runit-man-2.4.9 lib/runit-man/config.ru
runit-man-2.4.8 lib/runit-man/config.ru
runit-man-2.4.7 lib/runit-man/config.ru
runit-man-2.4.6 lib/runit-man/config.ru
runit-man-2.4.5 lib/runit-man/config.ru
runit-man-2.4.4 lib/runit-man/config.ru
runit-man-2.4.3 lib/runit-man/config.ru
runit-man-2.4.2 lib/runit-man/config.ru
runit-man-2.4.1 lib/runit-man/config.ru
runit-man-2.4.1a1 lib/runit-man/config.ru
runit-man-2.4.0 lib/runit-man/config.ru
runit-man-2.4.0a2 lib/runit-man/config.ru
runit-man-2.4.0a1 lib/runit-man/config.ru
runit-man-2.3.21 lib/runit-man/config.ru
runit-man-2.3.20 lib/runit-man/config.ru
runit-man-2.3.19 lib/runit-man/config.ru