Skip to content

Instantly share code, notes, and snippets.

@fredv
Last active August 29, 2015 14:00
Show Gist options
  • Save fredv/11192566 to your computer and use it in GitHub Desktop.
Save fredv/11192566 to your computer and use it in GitHub Desktop.
import (
"github.com/dynport/urknall"
"github.com/dynport/urknall/cmd"
)
func helloWorld (p urknall.Package) {
p.AddCommands("run", cmd.Shell("echo hello world"));
}
func main() {
template := urknall.TemplateFunc(helloWorld)
target, _ := urknall.NewSshTargetWithPassword("ubuntu@172.16.223.142", "ubuntu")
e := urknall.Run(target, template)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment