mguymon / lock_jar

LockJar manages Java Jars for Ruby
http://mguymon.github.io/lock_jar/
Apache License 2.0
46 stars 9 forks source link

Magic auth file #37

Closed mguymon closed 8 years ago

mguymon commented 8 years ago

@r6p

Fix for https://github.com/mguymon/lock_jar/issues/36 by adding support for .lockjar config. Looks for ENV defined path, current dir, and home dir for the file, in that order of precedence. The config format is yaml, and follows:

repositories:
  'https://some.fancy.doman/maven':
    username: 'user1'
    password: 'the_pass'

Which will automatically get used if the repository is added in the lockfile.

bigsur0 commented 8 years ago

Added very minor comments to the code. Thanks! It looks good and works too.

mguymon commented 8 years ago

Great, thanks for the feedback! I will address and put out a new release.