Created
November 22, 2017 08:16
-
-
Save intelligenced/7bbaec54d37ac6aa0cdf7b2ee21bc42e to your computer and use it in GitHub Desktop.
Unconventional Auto Deploy - AHK Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SingleInstance, force | |
Path = C:\putty.exe | |
IP = IP | |
User = Instance User | |
Pass = Instance Pass | |
Directory = Repo Directory | |
GitUser = | |
GitPass = | |
Origin = origin | |
Master = master | |
;~ ^t:: | |
run %Path% | |
WinWaitActive, PuTTY Configuration ahk_class PuTTYConfigBox ahk_exe putty.exe | |
send %IP% | |
send !o | |
WinWaitActive, %IP% - PuTTY ahk_class PuTTY ahk_exe putty.exe | |
Sleep 500 | |
send %User%{enter} | |
Sleep 500 | |
send %Pass%{enter} | |
Sleep 500 | |
send cd %Directory%{enter} | |
Sleep 500 | |
send sudo git pull %Origin% %Master%{enter} | |
Sleep 500 | |
send %User%{enter} | |
Sleep 500 | |
send %GitUser%{enter} | |
Sleep 500 | |
send %GitPass%{enter} | |
Sleep 500 | |
ExitApp | |
return | |
F5:: | |
Send ^s | |
sleep 100 | |
Reload | |
return | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment