From a6643d85c76473943b4be9b46724a096c9e35b00 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Fri, 13 Mar 2015 23:02:15 +0700 Subject: [PATCH] snippets/cfengine3-mode: replace $ ( and ) Signed-off-by: Andreas Gerler --- snippets/cfengine3-mode/fileappend | 2 +- snippets/cfengine3-mode/fileexpand | 2 +- snippets/cfengine3-mode/filelink | 2 +- snippets/cfengine3-mode/filequad | 2 +- snippets/cfengine3-mode/filesetval | 2 +- snippets/cfengine3-mode/filesetvalini | 2 +- snippets/cfengine3-mode/filesetvalquoted | 2 +- snippets/cfengine3-mode/filetemplate | 2 +- snippets/cfengine3-mode/mkdir | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/snippets/cfengine3-mode/fileappend b/snippets/cfengine3-mode/fileappend index 50796abc..0e1de639 100644 --- a/snippets/cfengine3-mode/fileappend +++ b/snippets/cfengine3-mode/fileappend @@ -3,7 +3,7 @@ # key: fileappend # -- "$1" -handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_edit" (replace-regexp-in-string "[ /.-]" "_" (yas-text)))}", +handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_edit" (replace-regexp-in-string "[ )$(/.-]" "_" (yas-text)))}", comment => "configure $1", perms => mog("${3:644}","${4:root}","${5:root}"), create => "${6:$$(yas-choose-value '("true" "false"))}", diff --git a/snippets/cfengine3-mode/fileexpand b/snippets/cfengine3-mode/fileexpand index 844a0fd2..92c4d46a 100644 --- a/snippets/cfengine3-mode/fileexpand +++ b/snippets/cfengine3-mode/fileexpand @@ -3,7 +3,7 @@ # key: fileexpand # -- "${1:file}" -handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_edit" (replace-regexp-in-string "[ /.-]" "_" (yas-text)))}", +handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_edit" (replace-regexp-in-string "[ )$(/.-]" "_" (yas-text)))}", comment => "configure $1", perms => mog("${2:644}","${3:root}","${4:root}"), create => "${5:$$(yas-choose-value '("true" "false"))}", diff --git a/snippets/cfengine3-mode/filelink b/snippets/cfengine3-mode/filelink index 36a9fb90..78e19482 100644 --- a/snippets/cfengine3-mode/filelink +++ b/snippets/cfengine3-mode/filelink @@ -3,7 +3,7 @@ # key: fileln # -- "${1:file}" -handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_link" (replace-regexp-in-string "[ /.-]" "_" (yas-text)))}", +handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_link" (replace-regexp-in-string "[ )$(/.-]" "_" (yas-text)))}", comment => "ln -s $1", move_obstructions => "${5:$$(yas-choose-value '("true" "false"))}", link_from => ln_s( "$6" ); diff --git a/snippets/cfengine3-mode/filequad b/snippets/cfengine3-mode/filequad index 6ea07138..82eab263 100644 --- a/snippets/cfengine3-mode/filequad +++ b/snippets/cfengine3-mode/filequad @@ -3,7 +3,7 @@ # key: filequad # -- "${1:file}" -handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_create" (replace-regexp-in-string "[ /.-]" "_" (yas-text)))}", +handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_create" (replace-regexp-in-string "[ )$(/.-]" "_" (yas-text)))}", comment => "copy $1", perms => mog("${2:644}","${3:root}","${4:root}"), create => "${5:$$(yas-choose-value '("true" "false"))}", diff --git a/snippets/cfengine3-mode/filesetval b/snippets/cfengine3-mode/filesetval index 184f7406..a4bef542 100644 --- a/snippets/cfengine3-mode/filesetval +++ b/snippets/cfengine3-mode/filesetval @@ -3,7 +3,7 @@ # key: filesetval # -- "${1:file}" -handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_edit" (replace-regexp-in-string "[ /.-]" "_" (yas-text)))}", +handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_edit" (replace-regexp-in-string "[ )$(/.-]" "_" (yas-text)))}", comment => "configure $1", perms => mog("${2:600}","${3:root}","${4:root}"), create => "${5:$$(yas-choose-value '("true" "false"))}", diff --git a/snippets/cfengine3-mode/filesetvalini b/snippets/cfengine3-mode/filesetvalini index 69563dda..ea6e7226 100644 --- a/snippets/cfengine3-mode/filesetvalini +++ b/snippets/cfengine3-mode/filesetvalini @@ -3,7 +3,7 @@ # key: filesetvalini # -- "${1:file}" -handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_edit" (replace-regexp-in-string "[ /.-]" "_" (yas-text)))}", +handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_edit" (replace-regexp-in-string "[ )$(/.-]" "_" (yas-text)))}", comment => "configure $1", perms => mog("${2:600}","${3:root}","${4:root}"), create => "${5:$$(yas-choose-value '("true" "false"))}", diff --git a/snippets/cfengine3-mode/filesetvalquoted b/snippets/cfengine3-mode/filesetvalquoted index 9f4537cd..15c2de61 100644 --- a/snippets/cfengine3-mode/filesetvalquoted +++ b/snippets/cfengine3-mode/filesetvalquoted @@ -3,7 +3,7 @@ # key: filesetvalquoted # -- "${1:file}" -handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_edit" (replace-regexp-in-string "[ /.-]" "_" (yas-text)))}", +handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_edit" (replace-regexp-in-string "[ )$(/.-]" "_" (yas-text)))}", comment => "configure $1", perms => mog("${2:600}","${3:root}","${4:root}"), create => "${5:$$(yas-choose-value '("true" "false"))}", diff --git a/snippets/cfengine3-mode/filetemplate b/snippets/cfengine3-mode/filetemplate index 34224a40..a21027b3 100644 --- a/snippets/cfengine3-mode/filetemplate +++ b/snippets/cfengine3-mode/filetemplate @@ -3,7 +3,7 @@ # key: filetemplate # -- "${1:file}" -handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_edit" (replace-regexp-in-string "[ /.-]" "_" (yas-text)))}", +handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_edit" (replace-regexp-in-string "[ )$(/.-]" "_" (yas-text)))}", comment => "configure $1", perms => mog("${2:440}","${3:root}","${4:root}"), create => "${5:$$(yas-choose-value '("true" "false"))}", diff --git a/snippets/cfengine3-mode/mkdir b/snippets/cfengine3-mode/mkdir index 30674775..eb8c57b6 100644 --- a/snippets/cfengine3-mode/mkdir +++ b/snippets/cfengine3-mode/mkdir @@ -3,7 +3,7 @@ # key: mkdir # -- "${1:file}/." -handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_mkdir" (replace-regexp-in-string "[ /.-]" "_" (yas-text)))}", +handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_mkdir" (replace-regexp-in-string "[ )$(/.-]" "_" (yas-text)))}", comment => "mkdir $1", create => "${3:$$(yas-choose-value '("true" "false"))}", perms => mog("${4:700}","${5:root}","${6:root}"); -- 2.47.3