Skip to content

Commit

Permalink
feat: test call configDriver.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroTochigi committed Jun 13, 2024
1 parent 4d6d6a9 commit 1e8f675
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/aws/callUtils.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

function testConfigDriver() {
configDriver "myserver" "example.com" "user" "22" "~/.ssh/id_rsa" "8888:80,9999:443"
}
3 changes: 3 additions & 0 deletions src/aws/driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ function awsDriver() {
install)
installAwsCli "${@:2}"
;;
test)
testConfigDriver
;;
*)
echo "Error: Invalid command."
awsUsage
Expand Down
1 change: 1 addition & 0 deletions src/aws/load.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

4 changes: 2 additions & 2 deletions src/utils/dependencies/config.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
CONFIG=~/.ssh/config
#CONFIG=~/Projects/luftballon/config # Test
#CONFIG=~/.ssh/config
CONFIG=~/Projects/luftballon/config # Test

0 comments on commit 1e8f675

Please sign in to comment.