1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-12-17 21:57:29 +02:00

Move Plugins to a /plugin Directory

This commit is contained in:
Brad Rydzewski
2014-06-12 14:46:55 -07:00
parent 12fae4b62e
commit 170135cb1d
48 changed files with 17 additions and 17 deletions

18
plugin/deploy/bash.go Normal file
View File

@@ -0,0 +1,18 @@
package deploy
import (
"github.com/drone/drone/shared/build/buildfile"
)
type Bash struct {
Script []string `yaml:"script,omitempty"`
Command string `yaml:"command,omitempty"`
}
func (g *Bash) Write(f *buildfile.Buildfile) {
g.Script = append(g.Script, g.Command)
for _, cmd := range g.Script {
f.WriteCmd(cmd)
}
}