Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

15273 - add an option to force display => failed behavior to rpc app

New vim snippets:

 * Remove the meta block from the agent
 * Add dataquery
 * Add discovery
 * Add default to outputs
 * Add boolean input type
 * Add numeric input type
 * Fix some spacing issues thats now possible with latest snipMate
  • Loading branch information...
commit 02df0d156bac4ffcc253c9fac5abeaf2d43be342 1 parent 638d221
@ripienaar ripienaar authored
View
20 ext/vim/_.snippets
@@ -1,18 +1,10 @@
snippet mcagent
module MCollective
- module Agent
- class ${1:Agentname}<RPC::Agent
- metadata :name => "${2:`Filename('', 'name')`}",
- :description => "${3:description}",
- :author => "${4:`g:snips_author`}",
- :license => "${5:license}",
- :version => "${6:version}",
- :url => "${7:homepage}",
- :timeout => ${8:run timeout}
-
- action "${9:action name}" do
- ${10}
- end
- end
+ module Agent
+ class ${1:Agentname}<RPC::Agent
+ action "${2:action name}" do
+ ${3}
+ end
end
+ end
end
View
59 ext/vim/mcollective_ddl.snippets
@@ -4,16 +4,16 @@
# and copy this to your snippets directory.
#
# Create a file .vim/ftdetect/mcollective_ddl.vim with the following:
-#
+#
# au BufRead,BufNewFile *.ddl setfiletype mcollective_ddl
#
# Your file type should now be correctly set automatically and editing
# DDLs should be easier.
#
-# Please contact R.I.Pienaar <rip@devco.net> for additions and feedback,
+# Please contact R.I.Pienaar <rip@devco.net> for additions and feedback,
snippet meta
metadata :name => "${1:`Filename('', 'name')`}",
- :description => "${2:description}",
+ :description => "${2:description}",
:author => "${3:`g:snips_author`}",
:license => "${4:license}",
:version => "${5:version}",
@@ -21,35 +21,60 @@ snippet meta
:timeout => ${7:run timeout}
${8}
+snippet discovery
+ discovery do
+ capabilities ${1:capability list}
+ end
+snippet dataquery
+ dataquery :description => "${1:data query description}" do
+ ${2}
+ end
snippet action
action "${1:action name}", :description => "${2:action description}" do
${3}
end
snippet input String
input :${1:input name},
- :prompt => "${2:prompt when asking for information}",
- :description => "${3:description of the input}",
- :type => :string,
- :validation => '${4:^.+$}',
- :optional => ${5:false},
- :maxlength => ${6:20}
+ :prompt => "${2:prompt when asking for information}",
+ :description => "${3:description of the input}",
+ :type => :string,
+ :validation => '${4:^.+$}',
+ :optional => ${5:false},
+ :maxlength => ${6:20}
${7}
snippet input List
input :${1:input name},
- :prompt => "${2:prompt when asking for information}",
- :description => "${3:description of the input}",
- :type => :list,
- :optional => ${4:false},
- :list => [${5:list members}]
+ :prompt => "${2:prompt when asking for information}",
+ :description => "${3:description of the input}",
+ :type => :list,
+ :optional => ${4:false},
+ :list => [${5:list members}]
${6}
+snippet input Numeric
+ input :${1:input name},
+ :prompt => "${2:prompt when asking for information}",
+ :description => "${3:description of the input}",
+ :type => :number,
+ :optional => ${4:false}
+
+ ${5}
+snippet input Boolean
+ input :${1:input name},
+ :prompt => "${2:prompt when asking for information}",
+ :description => "${3:description of the input}",
+ :type => :boolean,
+ :optional => ${4:false}
+
+ ${5}
snippet output
output ${1:output name},
:description => "${2:description of this output data}",
- :display_as => "${3:what do display}"
+ :display_as => "${3:what do display}",
+ :default => ${4:nil}
- ${4}
+ ${5}
snippet display Always
display :always
@@ -60,5 +85,5 @@ snippet display Only OK results
snippet display Only failed results
display :failed
-
+
View
1  website/changelog.md
@@ -8,6 +8,7 @@ toc: false
|Date|Description|Ticket|
|----|-----------|------|
+|2012/07/02|Update vim snippets in ext for new DDL features|15273|
|2012/06/29|Create a common package for agent packages containing the DDL for servers and clients|15268|
|2012/06/28|Improve parsing of compound filters where the first argument is a class|15271|
|2012/06/28|Add the ability to declare automatic result summarization in the DDL files for agents|15031|
Please sign in to comment.
Something went wrong with that request. Please try again.