dockerimg: fix typo in SSHTheater name
diff --git a/dockerimg/dockerimg.go b/dockerimg/dockerimg.go
index f2e0f25..8c2a4e3 100644
--- a/dockerimg/dockerimg.go
+++ b/dockerimg/dockerimg.go
@@ -277,7 +277,7 @@
fmt.Println(err.Error())
// continue - ssh config is not required for the rest of sketch to function locally.
} else {
- cst, err := NewSSHTheather(cntrName, sshHost, sshPort)
+ cst, err := NewSSHTheater(cntrName, sshHost, sshPort)
if err != nil {
return appendInternalErr(fmt.Errorf("NewContainerSSHTheather: %w", err))
}
diff --git a/dockerimg/ssh_theater.go b/dockerimg/ssh_theater.go
index c006487..69e63de 100644
--- a/dockerimg/ssh_theater.go
+++ b/dockerimg/ssh_theater.go
@@ -50,7 +50,7 @@
kg KeyGenerator
}
-// NewSSHTheather will set up everything so that you can use ssh on localhost to connect to
+// NewSSHTheater will set up everything so that you can use ssh on localhost to connect to
// the sketch container. Call #Clean when you are done with the container to remove the
// various entries it created in its known_hosts and ssh_config files. Also note that
// this will generate key pairs for both the ssh server identity and the user identity, if
@@ -61,7 +61,7 @@
// If this doesn't return an error, you should be able to run "ssh <cntrName>"
// in a terminal on your host machine to open a shell into the container without having
// to manually accept changes to your known_hosts file etc.
-func NewSSHTheather(cntrName, sshHost, sshPort string) (*SSHTheater, error) {
+func NewSSHTheater(cntrName, sshHost, sshPort string) (*SSHTheater, error) {
return newSSHTheatherWithDeps(cntrName, sshHost, sshPort, &RealFileSystem{}, &RealKeyGenerator{})
}
diff --git a/dockerimg/ssh_theater_test.go b/dockerimg/ssh_theater_test.go
index 3731018..5674d91 100644
--- a/dockerimg/ssh_theater_test.go
+++ b/dockerimg/ssh_theater_test.go
@@ -673,7 +673,7 @@
defer os.Setenv("HOME", oldHome)
// Create the theater
- theater, err := NewSSHTheather("test-container", "localhost", "2222")
+ theater, err := NewSSHTheater("test-container", "localhost", "2222")
if err != nil {
t.Fatalf("Failed to create real SSHTheather: %v", err)
}