From b0d1027315ebf59ff429e5a1d585ece34b4d0c9e Mon Sep 17 00:00:00 2001 From: Danilo Pantani Date: Tue, 16 Jul 2024 19:32:26 +0200 Subject: [PATCH] remove unused methods --- spaceship/pkg/ssh/ssh.go | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/spaceship/pkg/ssh/ssh.go b/spaceship/pkg/ssh/ssh.go index 6543d822..16ebaabe 100644 --- a/spaceship/pkg/ssh/ssh.go +++ b/spaceship/pkg/ssh/ssh.go @@ -17,9 +17,7 @@ import ( ) const ( - goAppName = "go" - igniteAppName = "ignite" - workdir = "spaceship" + workdir = "spaceship" ) type SSH struct { @@ -152,14 +150,6 @@ func (s *SSH) Home() string { return filepath.Join(s.Workspace(), "home") } -func (s *SSH) Ignite() string { - return filepath.Join(s.Bin(), igniteAppName) -} - -func (s *SSH) Go() string { - return filepath.Join(s.Bin(), goAppName) -} - func (s *SSH) validate() error { switch { case s.username == "": @@ -306,15 +296,3 @@ func (s *SSH) UploadHome(ctx context.Context, srcPath string) (string, error) { path := s.Home() return path, s.Upload(ctx, srcPath, path) } - -func (s *SSH) RunIgniteCommand(ctx context.Context, args ...string) (string, error) { - cmd, err := s.client.CommandContext(ctx, s.Ignite(), args...) - if err != nil { - return "", err - } - out, err := cmd.CombinedOutput() - if err != nil { - return "", err - } - return string(out), nil -}