add archive file and build tool, move src file to src folder

This commit is contained in:
everyx 2016-10-16 16:10:06 +08:00
parent 2469125a60
commit f21308ee94
8 changed files with 49 additions and 0 deletions

View File

@ -1,2 +1,42 @@
# mibew-operator-status-plugin # mibew-operator-status-plugin
Plugin for Mibew, get statement based on the availability of operators. 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 not shown.

Binary file not shown.

9
build.sh Executable file
View File

@ -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