Documentation
¶
Index ¶
- func AppendCommandEnvsToTask(cmd *entity.Command, task *entity.Task)
- func CheckInitialArgs(network *entity.Network, initialArgs *entity.InitialArgs)
- func CreateTasks(cmd *entity.Command, clients []entity.ClientFacade, env entity.EnvList, ...) ([]*entity.Task, error)
- func EnsureLocalhost(supFile *entity.Supfile)
- func ResolveLocalPath(cwd, path, env string) (string, error)
- func ResolvePath(path string) string
- type Stackup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckInitialArgs ¶
func CheckInitialArgs(network *entity.Network, initialArgs *entity.InitialArgs)
func CreateTasks ¶
func EnsureLocalhost ¶
func ResolveLocalPath ¶
ResolveLocalPath - Use bash to resolve $ENV_VARs. like: `~/dir` or `$HOME/dir`
func ResolvePath ¶
ResolvePath resolves a path relative to the current working directory
Types ¶
type Stackup ¶
type Stackup struct {
Args *entity.InitialArgs
// contains filtered or unexported fields
}
func NewStackup ¶
NewStackup creates a new Stackup instance.
func (*Stackup) Run ¶
func (sup *Stackup) Run(isMakefileMode bool, network *entity.Network, envVars entity.EnvList, commands ...*entity.Command) error
Run runs set of commands on multiple hosts defined by network sequentially.
TODO: This megamoth method needs a big refactor and should be split to multiple smaller methods.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.