Page 1 of 1

New Amahi 7 feature: create Amahi plugins with one line

Posted: Tue Mar 12, 2013 6:07 am
by cpg
Hello,

I'm happy to report that as of this code commit, we have the ability to easily create Amahi platform plugins. One line is all is needed to create a basic plugin!

At the moment there is only one kind of plugin supported, "tabs" ... a new tab inside the Setup area of Amahi is created for each plugin. This has been a work in progress for a long time that we're happy to report is starting to work.

Soon we will also have these available as one-click apps, for a really expandable system, with hopefully lots of useful plugins! 8-)

Example, a plugin to, say, monitor disks in the system:

Code: Select all

bash$ rails generate plugin Disks create plugins/disks/Gemfile create plugins/disks/LICENSE create plugins/disks/README.rdoc create plugins/disks/Rakefile create plugins/disks/app create plugins/disks/app/assets/images/.gitkeep create plugins/disks/app/assets/javascripts/application.js create plugins/disks/app/assets/stylesheets/application.css create plugins/disks/app/controllers/application_controller.rb create plugins/disks/app/controllers/tab_controller.rb create plugins/disks/app/helpers/application_helper.rb create plugins/disks/app/views/tab/index.html.slim create plugins/disks/config create plugins/disks/config/locales/en.yml create plugins/disks/db create plugins/disks/lib create plugins/disks/script create plugins/disks/config/amahi-plugin.yml create plugins/disks/disks.gemspec create plugins/disks/lib/disks.rb create plugins/disks/lib/disks/version.rb create plugins/disks/lib/disks/engine.rb create plugins/disks/lib/tasks/disks.rake create plugins/disks/config/routes.rb create plugins/disks/script/rails chmod plugins/disks/script/rails bash$
once the platform is restarted, the plugin is working right away (albeit with little functionality)
new-plugin.png
new-plugin.png (60.3 KiB) Viewed 14884 times

Re: New Amahi 7 feature: create Amahi plugins with one line

Posted: Tue Mar 12, 2013 6:59 am
by bigfoot65
Awesome! Can hardly wait to start packaging them :)

Re: New Amahi 7 feature: create Amahi plugins with one line

Posted: Sun Jul 20, 2014 11:24 am
by cpg
Hi, this feature was released a couple of weeks ago widely with Amahi 7.3.

We need ideas on what to package as plugins!

What features or functionality can we easily and more importantly, usefully, package as plugins?

Re: New Amahi 7 feature: create Amahi plugins with one line

Posted: Sun Jul 20, 2014 12:29 pm
by bigfoot65
I added one to the bug tracker the other day.
https://bugs.amahi.org/issues/1480

I think this would be the best way to track new suggestions for plugins :)

EDIT: BTW, do we have a list of current plugins under development? Would be good to post that here and in the wiki where all can see.

Re: New Amahi 7 feature: create Amahi plugins with one line

Posted: Sun Jul 20, 2014 1:45 pm
by cpg
the app store is probably the best to keep tabs on these, but for now, things are extremely busy to clean these up, add nice logos and screenshots, etc., so here is a list:

http://www.amahi.org/apps/db-backups-plugin -- Backing up databases
http://www.amahi.org/apps/pooling -- Greyhole, finishing development
http://www.amahi.org/apps/web-apps -- Add ability to add web apps
http://www.amahi.org/apps/disk-stats -- Disk stats plugin
http://www.amahi.org/apps/disk-wizard -- New disk wizard, under development

Re: New Amahi 7 feature: create Amahi plugins with one line

Posted: Sun Jul 20, 2014 4:47 pm
by bigfoot65
Awesome! Can't wait to test them out.