Sha256: a444f85a5fef915dea345adbfc78430e25aa11b64abf282cbb2e9652f655e59f

Contents?: true

Size: 822 Bytes

Versions: 61

Compression:

Stored size: 822 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 timeout -1   

spawn cap deploy
match_max 100000

# Look for user prompt
expect "*?sername:*"
send -- "$g_user\r"
send -- "\r"

# Look for passwod prompt
expect "*?assword:*"
send -- "$g_pwd\r"
send -- "\r"

# Look for user prompt
expect "*?sername:*"
send -- "$g_user\r"
send -- "\r"

# Look for passwod prompt
expect "*?assword:*"
send -- "$g_pwd\r"
send -- "\r"

expect eof

Version data entries

61 entries across 46 versions & 1 rubygems

Version Path
magic_recipes-0.0.28 bin/git_cap_old
magic_recipes-0.0.27 lib/generators/magic_recipes/templates/git_cap.tt
magic_recipes-0.0.27 bin/git_cap
magic_recipes-0.0.26 bin/git_cap
magic_recipes-0.0.26 lib/generators/magic_recipes/templates/git_cap.tt
magic_recipes-0.0.25 bin/git_cap
magic_recipes-0.0.25 lib/generators/magic_recipes/templates/git_cap.tt
magic_recipes-0.0.24 bin/git_cap
magic_recipes-0.0.24 lib/generators/magic_recipes/templates/git_cap.tt
magic_recipes-0.0.23 bin/git_cap
magic_recipes-0.0.23 lib/generators/magic_recipes/templates/git_cap.tt
magic_recipes-0.0.22 lib/generators/magic_recipes/templates/git_cap.tt
magic_recipes-0.0.22 bin/git_cap
magic_recipes-0.0.21 lib/generators/magic_recipes/templates/git_cap.tt
magic_recipes-0.0.21 bin/git_cap
magic_recipes-0.0.20 bin/git_cap
magic_recipes-0.0.20 lib/generators/magic_recipes/templates/git_cap.tt
magic_recipes-0.0.19 bin/git_cap
magic_recipes-0.0.19 lib/generators/magic_recipes/templates/git_cap.tt
magic_recipes-0.0.18 bin/git_cap