Created
January 11, 2018 17:12
-
-
Save ionrock/13c1828641ee7e9974c1d49cd7d30819 to your computer and use it in GitHub Desktop.
This file contains 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
func CreateExecutor(cmdType string, cmdCfg CommandConfig) *CommandExecutor { | |
ce := &CommandExecutor{} | |
switch cmdType { | |
case "docker": | |
ce.Command = CreateDockerCommand(cmdCfg) | |
case "ssh": | |
ce.Command = CreateSSHCommand(cmdCfg) | |
} | |
return ce | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment