class Npmdc::Config

Constants

DEPEPENDENCY_TYPES
ENVIRONMENTS

Attributes

abort_on_failure[RW]
color[RW]
environments[RW]
format[RW]
output[RW]
path[W]
types[RW]

Public Class Methods

new() click to toggle source
# File lib/npmdc/config.rb, line 10
def initialize
  @color = true
  @format = :short
  @output = STDOUT
  @types = DEPEPENDENCY_TYPES
  @environments = ENVIRONMENTS
  @abort_on_failure = false
end

Public Instance Methods

path() click to toggle source
# File lib/npmdc/config.rb, line 19
def path
  @path ||= Dir.pwd
end
path?() click to toggle source
# File lib/npmdc/config.rb, line 23
def path?
  instance_variable_defined?(:@path)
end