Sha256: 9c3aaba21f2815bbb413d5e481a92b24f1c8476b60d8083d8b94a8ac0d204472
Contents?: true
Size: 997 Bytes
Versions: 17
Compression:
Stored size: 997 Bytes
Contents
#!/usr/bin/expect -f # Expect script to supply username/password to cap deploy to git private repository # This script needs username and password as arguments to connect to git server: # ------------------------------------------------------------------------ # ./git_cap gitusr gitpwd # ------------------------------------------------------------------------- # set Variables set g_user [lrange $argv 0 0] set g_pwd [lrange $argv 1 1] set ulook ".?sername for 'https:\/\/github\.com':.*" set plook ".?assword for .*@github\.com':.*" set timeout -1 # # Regular Expressions http://docs.activestate.com/activetcl/8.5/expect4win/regex.html # spawn cap deploy match_max 100000 # Look for user prompt expect -re $ulook send -- "$g_user\r" send -- "\r" # Look for passwod prompt expect -re $plook send -- "$g_pwd\r" send -- "\r" # Look for user prompt expect -re $ulook send -- "$g_user\r" send -- "\r" # Look for passwod prompt expect -re $plook send -- "$g_pwd\r" send -- "\r" expect eof
Version data entries
17 entries across 17 versions & 1 rubygems