lib/bulldog/util.rb in bulldog-0.0.6 vs lib/bulldog/util.rb in bulldog-0.0.7

- old
+ new

@@ -1,21 +1,7 @@ module Bulldog module Util # - # Return the path of the first occurrence of +basename+ in the - # current PATH, or nil if the file cannot be found. - # - def find_in_path(basename) - ENV['PATH'].split(/:+/).each do |dirname| - path = File.join(dirname, basename) - if File.file?(path) && File.executable?(path) - return path - end - end - nil - end - - # # Run the given command, logging everything obsessively. # # Return the output if the command is successful, nil otherwise. # If an :expect_status option is given, any status codes in the # list are considered successful.