class OJS::Util
Public Class Methods
open_browser(url)
click to toggle source
# File lib/ojsubmitter/util.rb, line 6 def open_browser(url) system open_browser_command, url rescue UnknownOSError => err Logger.error "Open browser command for this platform is unknow" end
open_browser_command()
click to toggle source
# File lib/ojsubmitter/util.rb, line 12 def open_browser_command case RUBY_PLATFORM.downcase when /mswin(?!ce)|mingw|cygwin|bccwin/ 'start' when /darwin/ 'open' when /linux/ 'xdg-open' else raise UnknownOSError end end