Updated mcollective.init according to OSCI-658
[packages/precise/mcollective.git] / spec / unit / generators / snippets / agent_ddl
diff --git a/spec/unit/generators/snippets/agent_ddl b/spec/unit/generators/snippets/agent_ddl
new file mode 100644 (file)
index 0000000..e7a3ba0
--- /dev/null
@@ -0,0 +1,19 @@
+metadata
+action "action1", :description => "%ACTIONDESCRIPTION%" do
+     # Example Input
+     input :name,
+           :prompt => "%PROMPT%",
+           :description => "%DESCRIPTION%",
+           :type => %TYPE%,
+           :validation => '%VALIDATION%',
+           :optional => %OPTIONAL%,
+           :maxlength => %MAXLENGTH%
+
+     # Example output
+     output :name,
+            :description => "%DESCRIPTION%",
+            :display_as => "%DISPLAYAS%"
+end
+
+action "action2", :description => "%ACTIONDESCRIPTION%" do
+end