Sha256: f07df1da6f1c48099a5d3f59fd613b964953147742c7cedb4be0e64faa9c17f8
Contents?: true
Size: 414 Bytes
Versions: 4
Compression:
Stored size: 414 Bytes
Contents
require 'script_finder/base_finder' class ScriptFinder < BaseFinder def execute_command dir = find_bin_dir if dir execute_command_if_singleton(find_command_in_dir(dir)) else bin_dir_not_found end end private def too_many_cmds_found(cmd) super(cmd) { |c| File.join(bin_dir, c) } end def cmd_not_found puts "No script found matching '#{command.first}'" end end
Version data entries
4 entries across 4 versions & 1 rubygems