class Jumpstarter::Git::Fork

Public Instance Methods

run!() click to toggle source
# File lib/jumpstarter_core/git.rb, line 18
def run!()
    # Check if git is installed
    if not Jumpstarter::Git.installed!
        # Install git
        CommandRunner.execute(
            command: Commands::Git::Install,
            error: nil
        )
    end
    # clone
    CommandRunner.execute(
        command: "curl -u #{@username}:#{@password} https://api.github.com/repos/#{@remote}/forks -d ''",
        error: nil
    )
    return true
end