-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from beer-garden/Autobrew_Docs
Autobrew docs
- Loading branch information
Showing
4 changed files
with
171 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
= Autobrew Plugins | ||
:page-layout: docs | ||
:includedir: _includes | ||
|
||
The goal of this section is to help you utilize an existing class as a Plugin. | ||
|
||
It is important to note that Autobrew is only supported by what is loaded on the pythonpath. The folder that contains the beer.conf that utilizes the Autobrew features is loaded onto the pythonpath. | ||
|
||
Autobrew will allow Beer Garden to evaluate the class object and automatically generate the Command and Parameter properties based off Type Hinting and Doc Strings. | ||
|
||
[TIP] | ||
.Pros of using Autobrew | ||
==== | ||
If your client/system class does not require additional configurations when setting up the Plugin object, this feature can streamline your development. | ||
==== | ||
|
||
== Exisiting Class Implementation | ||
|
||
Autobrew allows you to utilize existing class objects as a Plugin with no additional work. All it requires is the `beer.conf`! | ||
|
||
=== Unique beer.conf fields | ||
|
||
Autobrew supports all of the fields standard for beer.conf. The primary difference is that Autobrew has the additional fiels of: | ||
|
||
- AUTO_BREW_MODULE | ||
- AUTO_BREW_CLASS | ||
- AUTO_BREW_ARGS | ||
- AUTO_BREW_KARGS | ||
|
||
Allowing for the class to be intialized with static ARGS/KWARGS. | ||
|
||
== Plugin Configuration | ||
|
||
include::{includedir}/beer-conf.adoc[] |