Method: PDK::Validate::ExternalCommandValidator#alternate_bin_paths
- Defined in:
- lib/pdk/validate/external_command_validator.rb
#alternate_bin_paths ⇒ Array[String]
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Alternate paths which the command (cmd) may exist in. Typically other ruby gem caches, or packaged installation bin directories.
74 75 76 77 78 79 80 81 |
# File 'lib/pdk/validate/external_command_validator.rb', line 74 def alternate_bin_paths [ PDK::Util::RubyVersion.bin_path, File.join(PDK::Util::RubyVersion.gem_home, 'bin'), PDK::Util::RubyVersion.gem_paths_raw.map { |gem_path_raw| File.join(gem_path_raw, 'bin') }, PDK::Util.package_install? ? File.join(PDK::Util.pdk_package_basedir, 'bin') : nil, ].flatten.compact end |