diff options
Diffstat (limited to 'lib/bundler/constants.rb')
-rw-r--r-- | lib/bundler/constants.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bundler/constants.rb b/lib/bundler/constants.rb new file mode 100644 index 0000000000..5b1c0a8cb1 --- /dev/null +++ b/lib/bundler/constants.rb @@ -0,0 +1,6 @@ +# frozen_string_literal: true +module Bundler + WINDOWS = RbConfig::CONFIG["host_os"] =~ /(msdos|mswin|djgpp|mingw)/ + FREEBSD = RbConfig::CONFIG["host_os"] =~ /bsd/ + NULL = WINDOWS ? "NUL" : "/dev/null" +end |