From 1e8f675d22b5a7b1189a075e611605981c3dc44e Mon Sep 17 00:00:00 2001 From: hiroTochigi Date: Wed, 12 Jun 2024 22:23:04 -0500 Subject: [PATCH] feat: test call configDriver.sh --- src/aws/callUtils.sh | 4 ++++ src/aws/driver.sh | 3 +++ src/aws/load.sh | 1 + src/utils/dependencies/config.sh | 4 ++-- 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 src/aws/callUtils.sh diff --git a/src/aws/callUtils.sh b/src/aws/callUtils.sh new file mode 100644 index 00000000..7fa66b6e --- /dev/null +++ b/src/aws/callUtils.sh @@ -0,0 +1,4 @@ + +function testConfigDriver() { + configDriver "myserver" "example.com" "user" "22" "~/.ssh/id_rsa" "8888:80,9999:443" +} \ No newline at end of file diff --git a/src/aws/driver.sh b/src/aws/driver.sh index d3ef119a..e26e3a53 100755 --- a/src/aws/driver.sh +++ b/src/aws/driver.sh @@ -33,6 +33,9 @@ function awsDriver() { install) installAwsCli "${@:2}" ;; + test) + testConfigDriver + ;; *) echo "Error: Invalid command." awsUsage diff --git a/src/aws/load.sh b/src/aws/load.sh index ecea5956..5d155746 100644 --- a/src/aws/load.sh +++ b/src/aws/load.sh @@ -29,5 +29,6 @@ source $manageConfigPath/src/aws/delete.sh source $manageConfigPath/src/aws/stop.sh source $manageConfigPath/src/aws/restart.sh source $manageConfigPath/src/aws/installAwsCli.sh +source $manageConfigPath/src/aws/callUtils.sh source $manageConfigPath/src/aws/driver.sh diff --git a/src/utils/dependencies/config.sh b/src/utils/dependencies/config.sh index df85a563..892cb196 100644 --- a/src/utils/dependencies/config.sh +++ b/src/utils/dependencies/config.sh @@ -1,2 +1,2 @@ -CONFIG=~/.ssh/config -#CONFIG=~/Projects/luftballon/config # Test +#CONFIG=~/.ssh/config +CONFIG=~/Projects/luftballon/config # Test