diff --git a/plugin/deploy/modulus.go b/plugin/deploy/modulus.go deleted file mode 100644 index be2b6f16..00000000 --- a/plugin/deploy/modulus.go +++ /dev/null @@ -1,28 +0,0 @@ -package deploy - -import ( - "fmt" - "github.com/drone/drone/plugin/condition" - "github.com/drone/drone/shared/build/buildfile" -) - -type Modulus struct { - Project string `yaml:"project,omitempty"` - Token string `yaml:"token,omitempty"` - - Condition *condition.Condition `yaml:"when,omitempty"` -} - -func (m *Modulus) Write(f *buildfile.Buildfile) { - f.WriteEnv("MODULUS_TOKEN", m.Token) - - // Install the Modulus command line interface then deploy the configured - // project. - f.WriteCmdSilent("[ -f /usr/bin/sudo ] || npm install -g modulus") - f.WriteCmdSilent("[ -f /usr/bin/sudo ] && sudo npm install -g modulus") - f.WriteCmd(fmt.Sprintf("modulus deploy -p '%s'", m.Project)) -} - -func (m *Modulus) GetCondition() *condition.Condition { - return m.Condition -} diff --git a/plugin/deploy/nodejitsu.go b/plugin/deploy/nodejitsu.go deleted file mode 100644 index cf8f5b40..00000000 --- a/plugin/deploy/nodejitsu.go +++ /dev/null @@ -1,29 +0,0 @@ -package deploy - -import ( - "github.com/drone/drone/plugin/condition" - "github.com/drone/drone/shared/build/buildfile" -) - -type Nodejitsu struct { - App string `yaml:"app,omitempty"` - User string `yaml:"user,omitempty"` - Token string `yaml:"token,omitempty"` - - Condition *condition.Condition `yaml:"when,omitempty"` -} - -func (n *Nodejitsu) Write(f *buildfile.Buildfile) { - f.WriteEnv("username", n.User) - f.WriteEnv("apiToken", n.Token) - - // Install the jitsu command line interface then - // deploy the configured app. - f.WriteCmdSilent("[ -f /usr/bin/sudo ] || npm install -g jitsu") - f.WriteCmdSilent("[ -f /usr/bin/sudo ] && sudo npm install -g jitsu") - f.WriteCmd("jitsu deploy") -} - -func (n *Nodejitsu) GetCondition() *condition.Condition { - return n.Condition -}