github.com/marinho/drone@v0.2.1-0.20140504195434-d3ba962e89a7/pkg/plugin/deploy/bash.go (about) 1 package deploy 2 3 import ( 4 "github.com/drone/drone/pkg/build/buildfile" 5 ) 6 7 type Bash struct { 8 Script []string `yaml:"script,omitempty"` 9 Command string `yaml:"command,omitempty"` 10 } 11 12 func (g *Bash) Write(f *buildfile.Buildfile) { 13 g.Script = append(g.Script, g.Command) 14 15 for _, cmd := range g.Script { 16 f.WriteCmd(cmd) 17 } 18 }