From f21308ee943d2d9f555d94c3ec27bed18deee471 Mon Sep 17 00:00:00 2001 From: everyx Date: Sun, 16 Oct 2016 16:10:06 +0800 Subject: [PATCH] add archive file and build tool, move src file to src folder --- README.md | 40 ++++++++++++++++++ archive/mibew-operator-status-plugin.tar.gz | Bin 0 -> 1850 bytes archive/mibew-operator-status-plugin.zip | Bin 0 -> 4104 bytes build.sh | 9 ++++ .../Controller}/OperatorStatusController.php | 0 Plugin.php => src/Plugin.php | 0 composer.json => src/composer.json | 0 routing.yml => src/routing.yml | 0 8 files changed, 49 insertions(+) create mode 100644 archive/mibew-operator-status-plugin.tar.gz create mode 100644 archive/mibew-operator-status-plugin.zip create mode 100755 build.sh rename {Controller => src/Controller}/OperatorStatusController.php (100%) rename Plugin.php => src/Plugin.php (100%) rename composer.json => src/composer.json (100%) rename routing.yml => src/routing.yml (100%) diff --git a/README.md b/README.md index 55e2b30..d78f63c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,42 @@ # mibew-operator-status-plugin Plugin for Mibew, get statement based on the availability of operators. + +# Useage + +Request `/opstatus?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 `/plugins` folder. + +4. Navigate to `/operator/plugin` page and enable the plugin. + +**Tips**: if you plugin state is "not initialized", please check `/configs/config.yml` file is not: + +```yml +... +plugins: [] +... +``` +and should be like this: + +```yml +... +plugins: + "SomePlugin": + key: value +... +``` + +# License + +[MIT](LICENSE) diff --git a/archive/mibew-operator-status-plugin.tar.gz b/archive/mibew-operator-status-plugin.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..4cd487dc8773a1a349f799b215518e428e8d8df5 GIT binary patch literal 1850 zcmV-A2gUdwiwFR%H3L`x1MOLDZ`(K$&S(FM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LkllyPz;> zV{whA)Zog#qxI0HFXjeC=>Br(Jg9_I$L^uFAuZN{R^pi4y;_avT%HA3H6`=X#H-|8 zOSJ3p`SPY#!;_|&Q(*Pm?%Rl6Wv%T1lzumn;y$49ckCmC#?RS)nXJ z6()X3BkbJ~WWf#f0&L%DDZHmHs=0;OY*H0C9{7lTw$=B>vXPwyLJ#mN&aX;W-$Gpl zRmY8enC4l?Bbuue?EZ`waku+3a_+`9O>Q^!X6(F~Tc%WARU49{0+hd69&XI7!Iu*j zgi~ldT^!`-r)0C8ImZd{1f^->SMA7e@b+!x^0MsHU@4RJHw!}dwWr_8bfoy!RHdZx zsHhC!em(CLFW`TA^y?JwtN0fGvks1z`F|TPhW~8<5Bv`n2_UGE6)B)zv{n)b>t=zl zW*P|V!o2w~ln5Z28JVV)Gis;sc& zVAQU#Q&j(FRIE#D(*#VfeV|*58Y}Wu3dOT5VbnpE<@CkH#w8}`UCGcg!6hCdtnF9W zs;G$L|KiPCMbt_rQ?a=6AkD~CG$63i@i>)K>_O>!s}y{mS&1TT%rmI_C;BUzh&van zqgWoKMeUVz#r3Ec;knllZmZR__*rM@U%K-?A+P$N#T(1yuGGHWZdtAN_F9>W!H>WT z_@BUsAJ$6iZkBwXjc@(_)7d{*=70NE$MC;RK>gNpb@~ literal 0 HcmV?d00001 diff --git a/archive/mibew-operator-status-plugin.zip b/archive/mibew-operator-status-plugin.zip new file mode 100644 index 0000000000000000000000000000000000000000..0706fc5d0f5d10614d5d992f4cb656b4f63623eb GIT binary patch literal 4104 zcmb7{2{=@HAIHbOhiffsHMY5yVQdp)r)wt0GK5IntYH{4mZWSAS<;G|C6!x5cIi%* zh>$H5#@37_>xk+m#dyc9_iDVau6xdN=FEAXc|O18f9C)DeytEp%$$JDqdCgT{I4(H zKG*=_0Mif;On8`z9f||M^iG}0;f@BA11^jUz`#7i1OPCfr2W)tM*z(2#*17&j~$V~cge;)4GXE=a4K9k7{d ze#m3d0os!f0{{Tt9sF0ce;_*81EcI4j1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