class Jumpstarter::Git::Clone

Public Instance Methods

run!() click to toggle source
# File lib/jumpstarter_core/git.rb, line 56
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: "git clone https://github.com/#{@username}/#{@remote}.git",
        error: nil
    )
    return true
end