class RepoForker::ForkingURI

Public Class Methods

build(repo_name) click to toggle source
Calls superclass method
# File lib/repo_forker/forking_uri.rb, line 3
def self.build(repo_name)
  super(build_params(repo_name))
end

Private Class Methods

build_host() click to toggle source
# File lib/repo_forker/forking_uri.rb, line 18
def self.build_host
  RepoForker.endpoint.sub(/\w+:\/\//, "")
end
build_params(repo_name) click to toggle source
# File lib/repo_forker/forking_uri.rb, line 8
def self.build_params(repo_name)
  { :path  => build_path(repo_name),
    :host  => build_host,
    :query => build_query }
end
build_path(repo_name) click to toggle source
# File lib/repo_forker/forking_uri.rb, line 14
def self.build_path(repo_name)
  "/repos/#{RepoForker.source}/#{repo_name}/forks"
end
build_query() click to toggle source
# File lib/repo_forker/forking_uri.rb, line 22
def self.build_query
  "organization=#{RepoForker.destination}"
end