Class: Bake::Doc
- Inherits:
-
Object
- Object
- Bake::Doc
- Defined in:
- lib/bake/options/showDoc.rb
Class Method Summary collapse
Class Method Details
.deprecated ⇒ Object
19 20 21 22 23 24 |
# File 'lib/bake/options/showDoc.rb', line 19 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 |
.show ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/bake/options/showDoc.rb', line 3 def self.show link = File.(File.dirname(__FILE__)+"/../../../doc/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 |