0
0
mirror of https://github.com/thegeeklab/wp-ansible.git synced 2024-11-28 18:10:35 +00:00
wp-ansible/plugin/plugin.go
Robert Kaussow e80ca3a599
refactor: rewrite to use plugin boilerplate (#12)
* refactor: rewrite to use plugin boilerplate

* fix build source

* fix gitignore
2021-02-10 11:34:04 +01:00

22 lines
497 B
Go

package plugin
import (
"github.com/drone-plugins/drone-plugin-lib/drone"
)
// Plugin implements drone.Plugin to provide the plugin implementation.
type Plugin struct {
settings Settings
pipeline drone.Pipeline
network drone.Network
}
// New initializes a plugin from the given Settings, Pipeline, and Network.
func New(settings Settings, pipeline drone.Pipeline, network drone.Network) drone.Plugin {
return &Plugin{
settings: settings,
pipeline: pipeline,
network: network,
}
}