1 # Snippets for use with VIM and http://www.vim.org/scripts/script.php?script_id=2540
3 # These snippets help you write Agent DDLs. Install the VIM Snippets system
4 # and copy this to your snippets directory.
6 # Create a file .vim/ftdetect/mcollective_ddl.vim with the following:
8 # au BufRead,BufNewFile *.ddl setfiletype mcollective_ddl
10 # Your file type should now be correctly set automatically and editing
11 # DDLs should be easier.
13 # Please contact R.I.Pienaar <rip@devco.net> for additions and feedback,
15 metadata :name => "${1:`Filename('', 'name')`}",
16 :description => "${2:description}",
17 :author => "${3:`g:snips_author`}",
18 :license => "${4:license}",
19 :version => "${5:version}",
20 :url => "${6:homepage}",
21 :timeout => ${7:run timeout}
26 capabilities ${1:capability list}
29 dataquery :description => "${1:data query description}" do
33 action "${1:action name}", :description => "${2:action description}" do
37 input :${1:input name},
38 :prompt => "${2:prompt when asking for information}",
39 :description => "${3:description of the input}",
41 :validation => '${4:^.+$}',
42 :optional => ${5:false},
47 input :${1:input name},
48 :prompt => "${2:prompt when asking for information}",
49 :description => "${3:description of the input}",
51 :optional => ${4:false},
52 :list => [${5:list members}]
56 input :${1:input name},
57 :prompt => "${2:prompt when asking for information}",
58 :description => "${3:description of the input}",
60 :optional => ${4:false}
64 input :${1:input name},
65 :prompt => "${2:prompt when asking for information}",
66 :description => "${3:description of the input}",
68 :optional => ${4:false}
72 output ${1:output name},
73 :description => "${2:description of this output data}",
74 :display_as => "${3:what do display}",
78 snippet display Always
82 snippet display Only OK results
86 snippet display Only failed results