New Amahi 7 feature: create Amahi plugins with one line
Posted: Tue Mar 12, 2013 6:07 am
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!
Example, a plugin to, say, monitor disks in the system:
once the platform is restarted, the plugin is working right away (albeit with little functionality)
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!
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$