diff options
Diffstat (limited to 'lib/license/management')
| -rw-r--r-- | lib/license/management/python.rb | 6 | ||||
| -rw-r--r-- | lib/license/management/shell.rb | 2 | ||||
| -rw-r--r-- | lib/license/management/version.rb | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/lib/license/management/python.rb b/lib/license/management/python.rb index c5f7107..b8932f9 100644 --- a/lib/license/management/python.rb +++ b/lib/license/management/python.rb @@ -50,6 +50,12 @@ module License ) end end + + def default_env + return {} unless shell.custom_certificate_installed? + + { 'PIP_CERT' => ENV.fetch('PIP_CERT', shell.custom_certificate_path.to_s) } + end end end end diff --git a/lib/license/management/shell.rb b/lib/license/management/shell.rb index 691a8ea..8850e60 100644 --- a/lib/license/management/shell.rb +++ b/lib/license/management/shell.rb @@ -33,7 +33,7 @@ module License private def expand(command) - Array(command).map(&:to_s).join(' ') + Array(command).flatten.map(&:to_s).join(' ') end def trust!(certificate) diff --git a/lib/license/management/version.rb b/lib/license/management/version.rb index b422fd6..fe617f9 100644 --- a/lib/license/management/version.rb +++ b/lib/license/management/version.rb @@ -2,6 +2,6 @@ module License module Management - VERSION = '3.7.0' + VERSION = '3.7.1' end end |
