Sha256: 75595fe6f1e920a2edc19f6dc94a226b57d5fd01c7115edc9daa48e392dfd8b2

Contents?: true

Size: 494 Bytes

Versions: 29

Compression:

Stored size: 494 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

29 entries across 29 versions & 1 rubygems

Version Path
bake-toolkit-2.29.4 lib/bake/options/showDoc.rb
bake-toolkit-2.29.3 lib/bake/options/showDoc.rb
bake-toolkit-2.29.2 lib/bake/options/showDoc.rb
bake-toolkit-2.29.0 lib/bake/options/showDoc.rb
bake-toolkit-2.28.1 lib/bake/options/showDoc.rb
bake-toolkit-2.28.0 lib/bake/options/showDoc.rb
bake-toolkit-2.27.0 lib/bake/options/showDoc.rb
bake-toolkit-2.26.1 lib/bake/options/showDoc.rb
bake-toolkit-2.26.0 lib/bake/options/showDoc.rb
bake-toolkit-2.25.1 lib/bake/options/showDoc.rb
bake-toolkit-2.25.0 lib/bake/options/showDoc.rb
bake-toolkit-2.24.6 lib/bake/options/showDoc.rb
bake-toolkit-2.24.5 lib/bake/options/showDoc.rb
bake-toolkit-2.24.4 lib/bake/options/showDoc.rb
bake-toolkit-2.24.3 lib/bake/options/showDoc.rb
bake-toolkit-2.24.2 lib/bake/options/showDoc.rb
bake-toolkit-2.24.1 lib/bake/options/showDoc.rb
bake-toolkit-2.24.0 lib/bake/options/showDoc.rb
bake-toolkit-2.23.12 lib/bake/options/showDoc.rb
bake-toolkit-2.23.8 lib/bake/options/showDoc.rb