Sha256: e4d6b8a59069679f4afb44ec1312fd81624aa31a1ea4948a6d76e74386255a02
Contents?: true
Size: 798 Bytes
Versions: 6
Compression:
Stored size: 798 Bytes
Contents
module Bake class Doc def self.show link = File.expand_path(File.dirname(__FILE__)+"/../../../documentation/_build/html/index.html") if RUBY_PLATFORM =~ /mswin|mingw|cygwin/ system "start #{link}" elsif RUBY_PLATFORM =~ /darwin/ system "open #{link}" elsif RUBY_PLATFORM =~ /linux|bsd/ system "xdg-open #{link}" else puts "Please open #{link} manually in your browser." end ExitHelper.exit(0) end def self.deprecated puts "Option \"--doc\" not supported anymore. Please use" puts "\"--show_doc\" to open the documentation in the browser OR" puts "\"--docu\" for building the documentation of a project." ExitHelper.exit(1) end end end
Version data entries
6 entries across 6 versions & 1 rubygems