Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #4 from tas50/master

Mode definitions in Chef shouldn't be strings.
  • Loading branch information...
commit 40b8ae65bc14bfe4d4392ff924bafdfe7d50859d 2 parents 65d9a43 + d358433
Miguel Cabeça authored
2  Cookbook File/cookbook_file-full.sublime-snippet
View
@@ -6,7 +6,7 @@ cookbook_file "${1:name}" do
source "${4:source}"
owner "${5:root}"
group "${6:root}"
- mode "${7:0644}"
+ mode ${7:00644}
backup ${8:5}
cookbook "${9:cookbook}"
end
2  Cookbook File/cookbook_file.sublime-snippet
View
@@ -4,7 +4,7 @@ cookbook_file "${1:name}" do
source "${2:source}"
owner "root"
group "root"
- mode "0644"
+ mode 00644
end
]]></content>
2  Directory/directory-full.sublime-snippet
View
@@ -4,7 +4,7 @@ directory "${1:name}" do
action :${2:create}
owner "${3:root}"
group "${4:root}"
- mode "${5:0755}"
+ mode ${5:00755}
path "${6:name}"
recursive ${7:false}
end
2  Directory/directory-recursive.sublime-snippet
View
@@ -3,7 +3,7 @@
directory "${1:name}" do
owner "root"
group "root"
- mode "0755"
+ mode 00755
action :create
recursive true
end
2  Directory/directory.sublime-snippet
View
@@ -3,7 +3,7 @@
directory "${1:name}" do
owner "root"
group "root"
- mode "0755"
+ mode 00755
action :create
end
2  File/file-content.sublime-snippet
View
@@ -4,7 +4,7 @@ file "${1:name}" do
action :create
owner "root"
group "root"
- mode "0644"
+ mode 00644
content "${2:content here}"
end
2  File/file-full.sublime-snippet
View
@@ -6,7 +6,7 @@ file "${1:name}" do
backup ${4:5}
owner "${5:root}"
group "${6:root}"
- mode "${7:0644}"
+ mode ${7:00644}
content "${8:content here}"
end
2  File/file.sublime-snippet
View
@@ -4,7 +4,7 @@ file "${1:name}" do
action :create
owner "root"
group "root"
- mode "0644"
+ mode 00644
end
]]></content>
4 Remote Directory/remote_directory-full.sublime-snippet
View
@@ -5,10 +5,10 @@ remote_directory "${1:/tmp/remote_something}" do
files_backup ${3:10}
files_owner "${4:root}"
files_group "${5:root}"
- files_mode "${6:0644}"
+ files_mode ${6:00644}
owner "${7:root}"
group "${8:root}"
- mode "${9:0755}"
+ mode ${9:00755}
cookbook ${10:nil}
purge ${11:false}
overwrite ${12:true}
4 Remote Directory/remote_directory.sublime-snippet
View
@@ -4,10 +4,10 @@ remote_directory "${1:/tmp/remote_something}" do
source "${2:something}"
files_owner "${3:root}"
files_group "${4:root}"
- files_mode "${5:0644}"
+ files_mode ${5:00644}
owner "${6:root}"
group "${7:root}"
- mode "${8:0755}"
+ mode ${8:00755}
end
]]></content>
2  Remote File/remote_file.sublime-snippet
View
@@ -3,7 +3,7 @@
remote_file "${1:/tmp/remote_file}" do
owner "${2:root}"
group "${3:root}"
- mode "${4:0644}"
+ mode ${4:00644}
source "${5:http://www.example.com/remote_file}"
checksum "${6:sha256checksum}"
end
2  Remote File/remote_filef.sublime-snippet
View
@@ -5,7 +5,7 @@ remote_file "${1:/tmp/remote_file}" do
backup ${3:5}
owner "${4:root}"
group "${5:root}"
- mode "${6:0644}"
+ mode ${6:00644}
source "${7:http://www.example.com/remote_file}"
checksum "${8:sha256checksum}"
end
2  Remote File/remote_filem.sublime-snippet
View
@@ -4,7 +4,7 @@ remote_file "${1:/tmp/remote_file}" do
action ${2::create_if_missing}
owner "${3:root}"
group "${4:root}"
- mode "${5:0644}"
+ mode ${5:00644}
source "${6:http://www.example.com/remote_file}"
end
2  Template/template-variables.sublime-snippet
View
@@ -4,7 +4,7 @@ template "${1:name}" do
source "${2:source}.erb"
owner "root"
group "root"
- mode "0644"
+ mode 00644
variables( ${3::config_var => node[:configs][:config_var]} )
end
2  Template/template.sublime-snippet
View
@@ -4,7 +4,7 @@ template "${1:name}" do
source "${2:source}.erb"
owner "root"
group "root"
- mode "0644"
+ mode 00644
end
]]></content>
Please sign in to comment.
Something went wrong with that request. Please try again.