Sha256: bf74699ab16127ec4bab0a9adf014c3de00dfc71b74e6ee07cbd7424ad791cd9

Contents?: true

Size: 417 Bytes

Versions: 1

Compression:

Stored size: 417 Bytes

Contents

module Npmdc
  require "npmdc/config"
  require "npmdc/checker"
  require "npmdc/version"

  class << self
    def call(options = {})
      Npmdc::Checker.new(options).call

    rescue Npmdc::Errors::ConfigurationError => e
      abort(e.banner)
    end

    def config
      @config ||= Config.new
    end

    def configure
      yield config
    end
  end

  require "npmdc/railtie" if defined?(Rails::Server)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
npmdc-0.5.0 lib/npmdc.rb