module Jazzy::SourceHost

Deal with different source code repositories

Public Class Methods

create(options) click to toggle source

Factory to create the right source host

# File lib/jazzy/source_host.rb, line 7
def self.create(options)
  return unless options.source_host_url || options.source_host_files_url

  case options.source_host
  when :github then GitHub.new
  when :gitlab then GitLab.new
  when :bitbucket then BitBucket.new
  end
end