lib/kpm/base_artifact.rb in kpm-0.6.4 vs lib/kpm/base_artifact.rb in kpm-0.6.5
- old
+ new
@@ -42,10 +42,13 @@
def pull_from_fs(logger, file_path, destination_path=nil)
pull_from_fs_and_put_in_place(logger, file_path, destination_path)
end
def nexus_remote(overrides={}, ssl_verify=true, logger=nil)
- nexus_remote ||= KPM::NexusFacade::RemoteFactory.create(nexus_defaults.merge(overrides || {}), ssl_verify, logger)
+ # overrides typically comes from the kpm.yml where we expect keys as String
+ overrides_sym = (overrides || {}).each_with_object({}) {|(k,v), h| h[k.to_sym] = v}
+ nexus_config = nexus_defaults.merge(overrides_sym)
+ nexus_remote ||= KPM::NexusFacade::RemoteFactory.create(nexus_config, ssl_verify, logger)
end
def nexus_defaults
{
url: 'https://oss.sonatype.org',