Method: Licensed::Sources::Bower#bower_config

Defined in:
lib/licensed/sources/bower.rb

#bower_configObject

Returns a parsed “.bowerrc” configuration, or an empty hash if not found



31
32
33
34
35
36
# File 'lib/licensed/sources/bower.rb', line 31

def bower_config
  @bower_config ||= begin
    path = config.pwd.join(".bowerrc")
    path.exist? ? JSON.parse(path.read) : {}
  end
end