summaryrefslogtreecommitdiff
path: root/lib/chef_zero/data_store/raw_file_store.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef_zero/data_store/raw_file_store.rb')
-rw-r--r--lib/chef_zero/data_store/raw_file_store.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef_zero/data_store/raw_file_store.rb b/lib/chef_zero/data_store/raw_file_store.rb
index 2d4b3f5..31bf08a 100644
--- a/lib/chef_zero/data_store/raw_file_store.rb
+++ b/lib/chef_zero/data_store/raw_file_store.rb
@@ -69,7 +69,7 @@ module ChefZero
FileUtils.mkdir_p(path_to(path))
end
begin
- File.open(path_to(path, name), File::WRONLY | File::CREAT | File::EXCL | File::BINARY, :internal_encoding => nil) do |file|
+ File.open(path_to(path, name), File::WRONLY | File::CREAT | File::EXCL | File::BINARY, internal_encoding: nil) do |file|
file.write data
end
rescue Errno::ENOENT
@@ -94,7 +94,7 @@ module ChefZero
if options.include?(:create)
mode |= File::CREAT
end
- File.open(path_to(path), mode, :internal_encoding => nil) do |file|
+ File.open(path_to(path), mode, internal_encoding: nil) do |file|
file.write data
end
rescue Errno::ENOENT