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.3.2'

Class Method Summary collapse

Class Method Details

.call(options = {}) ⇒ Object



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

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

rescue Npmdc::Errors::ConfigurationError => e
  Npmdc.config.output.puts e.banner

  false
end

.configObject



16
17
18
# File 'lib/npmdc.rb', line 16

def config
  @config ||= Config.new
end

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

Yields:



20
21
22
# File 'lib/npmdc.rb', line 20

def configure
  yield config
end