Sha256: 4aa74acfcfa48fc03bfedee7e945102655ed0a6dfe9b050395e6a25f67f8b67c

Contents?: true

Size: 266 Bytes

Versions: 6

Compression:

Stored size: 266 Bytes

Contents

module Acouchi
  class Which
    def self.find_executable name
      require "ptools"
      if executable = File.which(name)
        executable
      else
        raise %{Couldn't find any matches for the aliases "#{aliases.join(", ")}"}
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
acouchi-0.0.14 lib/acouchi/which.rb
acouchi-0.0.13 lib/acouchi/which.rb
acouchi-0.0.12 lib/acouchi/which.rb
acouchi-0.0.11 lib/acouchi/which.rb
acouchi-0.0.10 lib/acouchi/which.rb
acouchi-0.0.9 lib/acouchi/which.rb