app/models/providers/github_manager.rb
def candidate_spin?(full_name)
      raise Octokit::NotFound if @github_access.nil?
      begin
        # GitHub returns false when there is no content, or the content otherwise
        not (@github_access.contents(full_name, path: '/.manageiq-spin') == false)
      rescue Octokit::NotFound, Octokit::InvalidRepository
        return false
      end
    end
#
# Returns if the repo is a candidate to be a spin
# @param full_name [String] Full name of repo
# @returns true | false
#
Returns if the repo is a candidate to be a spin
Returns if the repo is a candidate to be a spin
def candidate_spin?(full_name)
      raise Octokit::NotFound if @github_access.nil?
      begin
        not (@github_access.contents(full_name, path: '/.manageiq-spin') == false)
      rescue Octokit::NotFound, Octokit::InvalidRepository
        return false
      end
    end
def candidate_spin? ( full_name ) raise Octokit :: NotFound if @github_access . nil? begin not ( @github_access . contents ( full_name , path : '/.manageiq-spin' ) == false ) rescue Octokit :: NotFound , Octokit :: InvalidRepository return false end end
Returns if the repo is a candidate to be a spin
Returns if the repo is a candidate to be a spin
# GitHub returns false when there is no content, or the content otherwise
true | false
true | false
full_name
Full name of repo
Full name of repo