Sha256: 53a84d43904b0c58fe27957caf88146197edebcdb92d0f99b3f100914521cb35
Contents?: true
Size: 898 Bytes
Versions: 1
Compression:
Stored size: 898 Bytes
Contents
module WebConsole # Detect unsupported platforms and try to help the user, if there is # something they can do about it. # # For example, not every JRuby mode is unsupported, we can guide the user # what to do to enable support for that platform. module UnsupportedPlatforms class << self def jruby_in_non_interpreted_mode return unless RUBY_PLATFORM =~ /java/ compile_mode = JRuby.runtime.instance_config.compile_mode interpreted_mode = Java::OrgJruby::RubyInstanceConfig::CompileMode::OFF yield if compile_mode != interpreted_mode end end jruby_in_non_interpreted_mode do warn <<-END.strip_heredoc JRuby needs to run in interpreted mode for Web Console support. To turn on interpreted mode, put -J-Djruby.compile.mode=OFF in the JRUBY_OPTS environment variable. END end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
web-console-2.0.0 | lib/web_console/unsupported_platforms.rb |