Skip to content

Commit

Permalink
add archive file and build tool, move src file to src folder
Browse files Browse the repository at this point in the history
  • Loading branch information
everyx committed Oct 16, 2016
1 parent 2469125 commit f21308e
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 0 deletions.
40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,42 @@
# mibew-operator-status-plugin
Plugin for Mibew, get statement based on the availability of operators.

# Useage

Request `<MIBEW-BASE-URL>/opstatus?code=<OPERATOR-CODE>`, your will get `true` when operator
is online or `false` when operator is offline.

# Install

1. Get the archive with the plugin sources from link bellow:

* [mibew-operator-status-plugin.tar.gz](archive/mibew-operator-status-plugin.tar.gz)

* [mibew-operator-status-plugin.zip](archive/mibew-operator-status-plugin.zip)

2. Untar/unzip the plugin's archive.

3. Put files of the plugins to the `<MIBEW-ROOT>/plugins` folder.

4. Navigate to `<MIBEW-BASE-URL>/operator/plugin` page and enable the plugin.

**Tips**: if you plugin state is "not initialized", please check `<MIBEW-ROOT>/configs/config.yml` file is not:

```yml
...
plugins: []
...
```
and should be like this:

```yml
...
plugins:
"SomePlugin":
key: value
...
```

# License

[MIT](LICENSE)
Binary file added archive/mibew-operator-status-plugin.tar.gz
Binary file not shown.
Binary file added archive/mibew-operator-status-plugin.zip
Binary file not shown.
9 changes: 9 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

plugin_root_dir='Everyx'
plugin_target_dir="$plugin_root_dir/Mibew/Plugin/OperatorStatus"
mkdir -p $plugin_target_dir
cp -R src/* $plugin_target_dir
tar -czvf archive/mibew-operator-status-plugin.tar.gz $plugin_root_dir
zip -r archive/mibew-operator-status-plugin.zip $plugin_root_dir
rm -rf $plugin_root_dir
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f21308e

Please sign in to comment.