Method: Bolt::Config#sc_open_max_available?
- Defined in:
- lib/bolt/config.rb
#sc_open_max_available? ⇒ Boolean
Etc::SC_OPEN_MAX is meaningless on windows, not defined in PE Jruby and not available on some platforms. This method holds the logic to decide whether or not to even consider it.
494 495 496 |
# File 'lib/bolt/config.rb', line 494 def sc_open_max_available? !Bolt::Util.windows? && defined?(Etc::SC_OPEN_MAX) && Etc.sysconf(Etc::SC_OPEN_MAX) end |