Sha256: 8e2255fb4c89078f87fff8d828587e8fb4bd5a91e58619ae033f254793bfe400

Contents?: true

Size: 524 Bytes

Versions: 17

Compression:

Stored size: 524 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
    
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
bake-toolkit-2.20.4 lib/bake/options/showDoc.rb
bake-toolkit-2.20.3 lib/bake/options/showDoc.rb
bake-toolkit-2.20.2 lib/bake/options/showDoc.rb
bake-toolkit-2.20.1 lib/bake/options/showDoc.rb
bake-toolkit-2.19.2 lib/bake/options/showDoc.rb
bake-toolkit-2.19.1 lib/bake/options/showDoc.rb
bake-toolkit-2.19.0 lib/bake/options/showDoc.rb
bake-toolkit-2.18.0 lib/bake/options/showDoc.rb
bake-toolkit-2.17.4 lib/bake/options/showDoc.rb
bake-toolkit-2.17.3 lib/bake/options/showDoc.rb
bake-toolkit-2.17.2 lib/bake/options/showDoc.rb
bake-toolkit-2.17.1 lib/bake/options/showDoc.rb
bake-toolkit-2.16.1 lib/bake/options/showDoc.rb
bake-toolkit-2.15.0 lib/bake/options/showDoc.rb
bake-toolkit-2.14.0 lib/bake/options/showDoc.rb
bake-toolkit-2.13.1 lib/bake/options/showDoc.rb
bake-toolkit-2.13.0 lib/bake/options/showDoc.rb