Sha256: 1a101f28aad1ad521dcd8541760310392ede2326614c10ca58e65e9b319eeb59
Contents?: true
Size: 571 Bytes
Versions: 29
Compression:
Stored size: 571 Bytes
Contents
module Aptible module CLI module Helpers module System def which(cmd) exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : [''] ENV['PATH'].split(File::PATH_SEPARATOR).each do |path| exts.each do |ext| exe = File.join(path, "#{cmd}#{ext}") return exe if File.executable?(exe) && !File.directory?(exe) end end nil end def ask_then_line(*args) ret = ask(*args) puts '' ret end end end end end
Version data entries
29 entries across 29 versions & 1 rubygems