app/models/assignment_repo/creator.rb
# Public: Push starter code to the newly created GitHub
# repository.
#
# github_repo_id - The Integer id of the GitHub repository.
#
# Returns true of raises a Result::Error.
Push starter code to the newly created GitHub
repository.

The Integer id of the GitHub repository.

Returns true of raises a Result::Error.
Push starter code to the newly created GitHub repository . The Integer id of the GitHub repository . Returns true of raises a Result :: Error .
def push_starter_code!(github_repo_id)
      client = assignment.creator.github_client
      starter_code_repo_id = assignment.starter_code_repo_id
      assignment_repository   = GitHubRepository.new(client, github_repo_id)
      starter_code_repository = GitHubRepository.new(client, starter_code_repo_id)
      assignment_repository.get_starter_code_from(starter_code_repository)
    rescue GitHub::Error
      raise Result::Error, REPOSITORY_STARTER_CODE_IMPORT_FAILED
    end
def push_starter_code! ( github_repo_id ) client = assignment . creator . github_client starter_code_repo_id = assignment . starter_code_repo_id assignment_repository = GitHubRepository . new ( client , github_repo_id ) starter_code_repository = GitHubRepository . new ( client , starter_code_repo_id ) assignment_repository . get_starter_code_from ( starter_code_repository ) rescue GitHub :: Error raise Result :: Error , REPOSITORY_STARTER_CODE_IMPORT_FAILED end
Public: Push starter code to the newly created GitHub
repository.
Public : Push starter code to the newly created GitHub repository .
github_repo_id
<not_specific>