Sha256: 88ff7865187d47ddfdd9a2162fa5cac306c80ca560d5e595390faac8203d04c7
Contents?: true
Size: 383 Bytes
Versions: 15
Compression:
Stored size: 383 Bytes
Contents
module WebConsole::Dependencies module Tester def self.check(name, type) case type when :shell_command return check_shell_command(name) end end private require 'shellwords' def self.check_shell_command(name) command = "type -a #{Shellwords.escape(name)} > /dev/null 2>&1" return system(command) end end end
Version data entries
15 entries across 15 versions & 1 rubygems