Sha256: 98a653144fd2e7c83c069ee33e3ecad91735d7de9bdce863ededf3b030a3c9c8

Contents?: true

Size: 527 Bytes

Versions: 2

Compression:

Stored size: 527 Bytes

Contents

# encoding: utf-8

module Cliver
  # The `which` command we love on many posix-systems needs analogues on other
  # systems. The Which module congitionally includes the correct implementation
  # into itself, so you can include it into something else.
  module Which
    case RbConfig::CONFIG['host_os']
    when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
      require 'cliver/which/windows'
      include Cliver::Which::Windows
    else
      require 'cliver/which/posix'
      include Cliver::Which::Posix
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cliver-0.1.5 lib/cliver/which.rb
cliver-0.1.4 lib/cliver/which.rb