Skip to content

Commit

Permalink
Update all resource auto-completes to use single-quotes instead of do…
Browse files Browse the repository at this point in the history
…uble-quotes

- Update common conditional not_if/only_if to use single-quotes
- Update cookbook_file resource autocomplete to use single-quotes
- Update cron resource autocomplete to use single-quotes
- Update deploy resource autocomplete to use single-quotes
- Add tab stops to deploy resource autocomplete
- Update directory resource autocomplete to use single-quotes
- Normalized order of attributes in directory resource autocomplete
- Update erl_call resource autocomplete to use single-quotes
- Update execute resource autocomplete to use single-quotes
- Update env resource autocomplete to use single-quotes
- Update file resource autocomplete to use single-quotes
- Update group resource autocomplete to use single-quotes
- Update http_request resource autocomplete to use single-quotes
- Update include_recipe resource autocomplete to use single-quotes
- Update link resource autocomplete to use single-quotes
- Update log resource autocomplete to use single-quotes
- Update mdadm resource autocomplete to use single-quotes
- Update metadata generator autocomplete to use single-quotes
- Update metadata generator pre-fills to match those created by chef generate
- Update mount resource autocomplete to use single-quotes
- Normalized order of attributes in mount resource autocomplete
- Update notifies autocompletes to use single-quotes
- Update ohai resource autocomplete to use single-quotes
- Update package resource autocomplete to use single-quotes
- Update remote_directory resource autocomplete to use single-quotes
- Update remote_file resource autocomplete to use single-quotes
- Update role autocomplete to use single-quotes
- Update ruby_block resource autocomplete to use single-quotes
- Update scm_git resource autocomplete to use single-quotes
- Update scm_svn resource autocomplete to use single-quotes
- Update script resource autocomplete to use single-quotes
- Update service resource autocomplete to use single-quotes
- Update service resource to read ':start, :enable' instead of ':enable, :start' because who would enable a service to start on boot when they aren't sure even sure it will start?
- Update template resource autocomplete to use single-quotes
- Update user resource autocomplete to use single-quotes
  • Loading branch information
Charles Johnson committed Jan 25, 2015
1 parent 547e9ca commit f7795dc
Show file tree
Hide file tree
Showing 64 changed files with 257 additions and 257 deletions.
2 changes: 1 addition & 1 deletion Conditional Execution/not_if.sublime-snippet
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[
not_if "$0"
not_if '$0'
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>not_if</tabTrigger>
Expand Down
2 changes: 1 addition & 1 deletion Conditional Execution/only_if.sublime-snippet
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[
only_if "$0"
only_if '$0'
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>only_if</tabTrigger>
Expand Down
14 changes: 7 additions & 7 deletions Cookbook File/cookbook_file-full.sublime-snippet
@@ -1,14 +1,14 @@
<snippet>
<content><![CDATA[
cookbook_file "${1:name}" do
cookbook_file '${1:name}' do
action :${2:create}
path "${3:path}"
source "${4:source}"
owner "${5:root}"
group "${6:root}"
mode "${7:0644}"
path '${3:path}'
source '${4:source}'
owner '${5:root}'
group '${6:root}'
mode '${7:0644}'
backup ${8:5}
cookbook "${9:cookbook}"
cookbook '${9:cookbook}'
end
]]></content>
Expand Down
10 changes: 5 additions & 5 deletions Cookbook File/cookbook_file.sublime-snippet
@@ -1,10 +1,10 @@
<snippet>
<content><![CDATA[
cookbook_file "${1:name}" do
source "${2:source}"
owner "root"
group "root"
mode "0644"
cookbook_file '${1:name}' do
source '${2:source}'
owner 'root'
group 'root'
mode '0644'
end
]]></content>
Expand Down
24 changes: 12 additions & 12 deletions Cron/cron-full.sublime-snippet
@@ -1,17 +1,17 @@
<snippet>
<content><![CDATA[
cron "${1:name}" do
hour "${2:*}"
minute "${3:*}"
day "${4:*}"
month "${5:*}"
weekday "${6:*}"
command "${7:/bin/true}"
user "${8:root}"
mailto "${9:root@example.com}"
path "${10:/bin:/usr/bin}"
home "${11:/tmp}"
shell "${12:/bin/bash}"
cron '${1:name}' do
hour '${2:*}'
minute '${3:*}'
day '${4:*}'
month '${5:*}'
weekday '${6:*}'
command '${7:/bin/true}'
user '${8:root}'
mailto '${9:root@example.com}'
path '${10:/bin:/usr/bin}'
home '${11:/tmp}'
shell '${12:/bin/bash}'
end
]]></content>
Expand Down
8 changes: 4 additions & 4 deletions Cron/cron.sublime-snippet
@@ -1,9 +1,9 @@
<snippet>
<content><![CDATA[
cron "${1:name}" do
hour "${2:5}"
minute "${3:0}"
command "${4:/bin/true}"
cron '${1:name}' do
hour '${2:5}'
minute '${3:0}'
command '${4:/bin/true}'
end
]]></content>
Expand Down
26 changes: 13 additions & 13 deletions Deploy/deploy.sublime-snippet
@@ -1,18 +1,18 @@
<snippet>
<content><![CDATA[
deploy "/my/deploy/dir" do
repo "git@github.com/whoami/project"
revision "abc123" # or "HEAD" or "TAG_for_1.0" or (subversion) "1234"
user "deploy_ninja"
enable_submodules true
migrate true
migration_command "rake db:migrate"
environment "RAILS_ENV" => "production", "OTHER_ENV" => "foo"
shallow_clone true
action :deploy # or :rollback
restart_command "touch tmp/restart.txt"
git_ssh_wrapper "wrap-ssh4git.sh"
scm_provider Chef::Provider::Git # is the default, for svn: Chef::Provider::Subversion
deploy '${1:/my/deploy/dir}' do
repo '${2:git@github.com/whoami/project}'
revision '${3:abc123}' # or 'HEAD' or 'TAG_for_1.0' or (subversion) '1234'
user '${4:deploy_ninja}'
enable_submodules ${5:true}
migrate ${6:true}
migration_command '${7:rake db:migrate}'
environment '${8:RAILS_ENV}' => '${9:production}', '${10:OTHER_ENV}' => '${11:foo}'
shallow_clone ${12:true}
action :${13:deploy} # or :rollback
restart_command '${14:touch tmp/restart.txt}'
git_ssh_wrapper '${15:wrap-ssh4git.sh}'
scm_provider ${16:Chef::Provider::Git} # is the default, for svn: Chef::Provider::Subversion
end
]]></content>
Expand Down
14 changes: 7 additions & 7 deletions Directory/directory-full.sublime-snippet
@@ -1,12 +1,12 @@
<snippet>
<content><![CDATA[
directory "${1:name}" do
action :${2:create}
owner "${3:root}"
group "${4:root}"
mode "${5:0755}"
path "${6:name}"
recursive ${7:false}
directory '${1:name}' do
owner '${2:root}'
group '${3:root}'
mode '${4:0755}'
path '${5:name}'
recursive ${6:false}
action :${7:create}
end
]]></content>
Expand Down
10 changes: 5 additions & 5 deletions Directory/directory-recursive.sublime-snippet
@@ -1,10 +1,10 @@
<snippet>
<content><![CDATA[
directory "${1:name}" do
owner "root"
group "root"
mode "0755"
action :create
directory '${1:name}' do
owner '${2:root}'
group '${3:root}'
mode '${4:0755}'
action :${5:create}
recursive true
end
Expand Down
8 changes: 4 additions & 4 deletions Directory/directory.sublime-snippet
@@ -1,9 +1,9 @@
<snippet>
<content><![CDATA[
directory "${1:name}" do
owner "root"
group "root"
mode "0755"
directory '${1:name}' do
owner 'root'
group 'root'
mode '0755'
action :create
end
Expand Down
4 changes: 2 additions & 2 deletions Env/env.sublime-snippet
@@ -1,7 +1,7 @@
<snippet>
<content><![CDATA[
env "${1:ComSpec}" do
value "${2:C:\\Windows\\system32\\cmd.exe}"
env '${1:ComSpec}' do
value '${2:C:\\Windows\\system32\\cmd.exe}''
end
]]></content>
Expand Down
6 changes: 3 additions & 3 deletions Erlang Call/erl_call.sublime-snippet
@@ -1,9 +1,9 @@
<snippet>
<content><![CDATA[
erl_call "${1:list names}" do
code "${2:net_adm:names().}"
erl_call '${1:list names}' do
code '${2:net_adm:names().}'
distributed ${3:false}
node_name "${4:chef@localhost}"
node_name '${4:chef@localhost}'
end
]]></content>
Expand Down
16 changes: 8 additions & 8 deletions Execute/execute-full.sublime-snippet
@@ -1,17 +1,17 @@
<snippet>
<content><![CDATA[
execute "${1:name}" do
execute '${1:name}' do
action :${2:run}
command "${3:ls -la}"
creates "${4:/tmp/something}"
cwd "${5:/tmp}"
command '${3:ls -la}'
creates '${4:/tmp/something}'
cwd '${5:/tmp}'
environment ({${6:'HOME' => '/home/myhome'}})
user "${7:root}"
group "${8:root}"
path "${9:['/opt/bin','/opt/sbin']}"
user '${7:root}'
group '${8:root}'
path '${9:['/opt/bin','/opt/sbin']}'
timeout ${10:3600}
returns ${11:0}
umask "${12:022}"
umask '${12:022}'
end
]]></content>
Expand Down
4 changes: 2 additions & 2 deletions Execute/execute-nothing.sublime-snippet
@@ -1,7 +1,7 @@
<snippet>
<content><![CDATA[
execute "${1:name}" do
command "${2:ls -la}"
execute '${1:name}' do
command '${2:ls -la}'
action :${3:nothing}
end
Expand Down
6 changes: 3 additions & 3 deletions Execute/execute.sublime-snippet
@@ -1,8 +1,8 @@
<snippet>
<content><![CDATA[
execute "${1:name}" do
command "${2:ls -la}"
creates "${3:/tmp/something}"
execute '${1:name}' do
command '${2:ls -la}'
creates '${3:/tmp/something}'
action :${4:run}
end
Expand Down
10 changes: 5 additions & 5 deletions File/file-content.sublime-snippet
@@ -1,11 +1,11 @@
<snippet>
<content><![CDATA[
file "${1:name}" do
file '${1:name}' do
action :create
owner "root"
group "root"
mode "0644"
content "${2:content here}"
owner 'root'
group 'root'
mode '0644'
content '${2:content here}'
end
]]></content>
Expand Down
12 changes: 6 additions & 6 deletions File/file-full.sublime-snippet
@@ -1,13 +1,13 @@
<snippet>
<content><![CDATA[
file "${1:name}" do
file '${1:name}' do
action :${2:create}
path "${3:path}"
path '${3:path}'
backup ${4:5}
owner "${5:root}"
group "${6:root}"
mode "${7:0644}"
content "${8:content here}"
owner '${5:root}'
group '${6:root}'
mode '${7:0644}'
content '${8:content here}'
end
]]></content>
Expand Down
8 changes: 4 additions & 4 deletions File/file.sublime-snippet
@@ -1,10 +1,10 @@
<snippet>
<content><![CDATA[
file "${1:name}" do
file '${1:name}' do
action :create
owner "root"
group "root"
mode "0644"
owner 'root'
group 'root'
mode '0644'
end
]]></content>
Expand Down
2 changes: 1 addition & 1 deletion Group/group-append.sublime-snippet
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[
group "${1:name}" do
group '${1:name}' do
action :create
gid ${2:999}
members [${3:'paco'}]
Expand Down
2 changes: 1 addition & 1 deletion Group/group.sublime-snippet
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[
group "${1:name}" do
group '${1:name}' do
action :create
gid ${2:999}
members [${3:'paco','vicente'}]
Expand Down
10 changes: 5 additions & 5 deletions HTTP Request/http_request-post.sublime-snippet
@@ -1,11 +1,11 @@
<snippet>
<content><![CDATA[
authorization = "Basic #{Base64.encode64('username:password')}"
http_request "${1:posting data}" do
authorization = 'Basic #{Base64.encode64('username:password')}'
http_request '${1:posting data}' do
action :post
url "${2:http://example.com/check_in}"
message ${3::some => "data"}
headers (${4:\{"AUTHORIZATION" => authorization\}})
url '${2:http://example.com/check_in}'
message ${3::some => 'data'}
headers (${4:\{'AUTHORIZATION' => authorization\}})
end
]]></content>
Expand Down
4 changes: 2 additions & 2 deletions HTTP Request/http_request.sublime-snippet
@@ -1,7 +1,7 @@
<snippet>
<content><![CDATA[
http_request "${1:some message}" do
url "${2:http://example.com/check_in}"
http_request '${1:some message}' do
url '${2:http://example.com/check_in}'
end
]]></content>
Expand Down
2 changes: 1 addition & 1 deletion Include/include_recipe.sublime-snippet
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[
include_recipe "${0:example::recipe}"
include_recipe '${0:example::recipe}'
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
Expand Down
8 changes: 4 additions & 4 deletions Link/link-full.sublime-snippet
@@ -1,10 +1,10 @@
<snippet>
<content><![CDATA[
link "${1:/tmp/passwd}" do
to "${2:/etc/passwd}"
link '${1:/tmp/passwd}' do
to '${2:/etc/passwd}'
link_type :${3:symbolic}
owner "${4:root}"
group "${5:root}"
owner '${4:root}'
group '${5:root}'
end
]]></content>
Expand Down
4 changes: 2 additions & 2 deletions Link/link-hard.sublime-snippet
@@ -1,7 +1,7 @@
<snippet>
<content><![CDATA[
link "${1:/tmp/passwd}" do
to "${2:/etc/passwd}"
link '${1:/tmp/passwd}' do
to '${2:/etc/passwd}'
link_type :hard
end
Expand Down
4 changes: 2 additions & 2 deletions Link/link.sublime-snippet
@@ -1,7 +1,7 @@
<snippet>
<content><![CDATA[
link "${1:/tmp/passwd}" do
to "${2:/etc/passwd}"
link '${1:/tmp/passwd}' do
to '${2:/etc/passwd}'
end
]]></content>
Expand Down
2 changes: 1 addition & 1 deletion Log/log-debug.sublime-snippet
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[
log ("${0:your string to log}") { level :debug }
log ('${0:your string to log}') { level :debug }
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>logd</tabTrigger>
Expand Down

0 comments on commit f7795dc

Please sign in to comment.