Example #1
0
func (cmd *DownloadCommand) Render(i interface{}) {
	cmd.Url = utils.MustRenderTemplate(cmd.Url, i)
	cmd.Destination = utils.MustRenderTemplate(cmd.Destination, i)
}
Example #2
0
func (fsc *FileSendCommand) Render(i interface{}) {
	fsc.Source = utils.MustRenderTemplate(fsc.Source, i)
	fsc.Target = utils.MustRenderTemplate(fsc.Target, i)
}
Example #3
0
func (cmd *FileCommand) Render(i interface{}) {
	cmd.Path = utils.MustRenderTemplate(cmd.Path, i)
	cmd.Content = utils.MustRenderTemplate(cmd.Content, i)
}
Example #4
0
func (cmd *ShellCommand) Render(i interface{}) {
	cmd.Command = utils.MustRenderTemplate(cmd.Command, i)
	if cmd.user != "" {
		cmd.user = utils.MustRenderTemplate(cmd.user, i)
	}
}