Skip to content

Commit 9207a1e

Browse files
committed
Disable notification & serial hives on non-Linux unices
1 parent 71b73db commit 9207a1e

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

hives.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ import (
5252
_ "github.com/muesli/beehive/bees/pushoverbee"
5353
_ "github.com/muesli/beehive/bees/rssbee"
5454
_ "github.com/muesli/beehive/bees/s3bee"
55-
_ "github.com/muesli/beehive/bees/serialbee"
5655
_ "github.com/muesli/beehive/bees/simplepushbee"
5756
_ "github.com/muesli/beehive/bees/slackbee"
5857
_ "github.com/muesli/beehive/bees/socketbee"

hives_linux.go

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// +build linux
2+
3+
/*
4+
* Copyright (C) 2014-2017 Christian Muehlhaeuser
5+
*
6+
* This program is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU Affero General Public License as published
8+
* by the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU Affero General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU Affero General Public License
17+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
*
19+
* Authors:
20+
* Christian Muehlhaeuser <[email protected]>
21+
*/
22+
23+
package main
24+
25+
import (
26+
_ "github.com/muesli/beehive/bees/notificationbee"
27+
_ "github.com/muesli/beehive/bees/serialbee"
28+
)

hives_osx.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ package main
2424

2525
import (
2626
_ "github.com/muesli/beehive/bees/notificationbee"
27+
_ "github.com/muesli/beehive/bees/serialbee"
2728
)

hives_unix.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,4 @@
2323
package main
2424

2525
import (
26-
_ "github.com/muesli/beehive/bees/notificationbee"
2726
)

0 commit comments

Comments
 (0)