mv 'env/stack{,_*}.go' => 'env/component{,_*}.go'
This commit is contained in:
parent
09431c4869
commit
54747e267e
7 changed files with 0 additions and 0 deletions
25
env/component_ssh.go
vendored
Normal file
25
env/component_ssh.go
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
package env
|
||||
|
||||
import "github.com/FAU-CDI/wisski-distillery/internal/stack"
|
||||
|
||||
// SSHComponent represents the 'ssh' layer belonging to a distillery
|
||||
type SSHComponent struct {
|
||||
dis *Distillery
|
||||
}
|
||||
|
||||
// SSH returns the SSHComponent belonging to this distillery
|
||||
func (dis *Distillery) SSH() SSHComponent {
|
||||
return SSHComponent{dis: dis}
|
||||
}
|
||||
|
||||
func (SSHComponent) Name() string {
|
||||
return "ssh"
|
||||
}
|
||||
|
||||
func (ssh SSHComponent) Stack() stack.Installable {
|
||||
return ssh.dis.makeComponentStack(ssh, stack.Installable{})
|
||||
}
|
||||
|
||||
func (ssh SSHComponent) Path() string {
|
||||
return ssh.Stack().Dir
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue