Module: Npmdc

Defined in:
lib/npmdc.rb,
lib/npmdc/cli.rb,
lib/npmdc/config.rb,
lib/npmdc/errors.rb,
lib/npmdc/checker.rb,
lib/npmdc/railtie.rb,
lib/npmdc/version.rb,
lib/npmdc/formatter.rb,
lib/npmdc/formatters/base.rb,
lib/npmdc/formatters/short.rb,
lib/npmdc/formatters/progress.rb,
lib/npmdc/formatters/documentation.rb

Defined Under Namespace

Modules: Errors, Formatter, Formatters Classes: Checker, Cli, Config, Railtie

Constant Summary collapse

VERSION =
'0.5.1'

Class Method Summary collapse

Class Method Details

.call(options = {}) ⇒ Object



7
8
9
10
11
12
# File 'lib/npmdc.rb', line 7

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

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

.configObject



14
15
16
# File 'lib/npmdc.rb', line 14

def config
  @config ||= Config.new
end

.configure {|config| ... } ⇒ Object

Yields:



18
19
20
# File 'lib/npmdc.rb', line 18

def configure
  yield config
end