aboutsummaryrefslogtreecommitdiff
path: root/pyenc/enc.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyenc/enc.py')
-rw-r--r--pyenc/enc.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pyenc/enc.py b/pyenc/enc.py
index 5df6ecb..24f9fdc 100644
--- a/pyenc/enc.py
+++ b/pyenc/enc.py
@@ -11,6 +11,11 @@ import yaml
@click.option('--fqdn', help='Node to get data for')
@with_appcontext
def run_enc(fqdn):
+ """
+ Run the puppet node classifier.
+
+ Runs the node clasifier for puppet, return the data as yaml.
+ """
host = model.Host.query.where(model.Host.fqdn == fqdn).first()
if not host:
print(f"No host with name {fqdn}")
@@ -23,4 +28,5 @@ def run_enc(fqdn):
def init_app(app):
+ """Add puppet enc click to current flask app."""
app.cli.add_command(run_enc)