pvcbuild / pvc

PVC -- Scaffold, Build, Publish -- Composable, extensible builds in .NET created by @stirno
http://pvcbuild.com
MIT License
117 stars 11 forks source link

Plugin: Slack integration #83

Open luisrudge opened 10 years ago

luisrudge commented 10 years ago

send events to slack

luisrudge commented 10 years ago

I'm thinking the api should be something like this:

var slackKey = "foo";
var slackChannel = "bar";

pvc.Task("build", () => {
    pvc.Source("PvcTest.sln")
       .Pipe(new PvcMSBuild());
}).Notify(new SlackNotifier(slackKey, slackChannel));

I don't think this plugin should receive streams, since the main goal for a notifier (in this scope) is to notify about a finished task. Does anyone have some thoughts about this?