summaryrefslogtreecommitdiff
path: root/lib/chef_zero/rest_base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef_zero/rest_base.rb')
-rw-r--r--lib/chef_zero/rest_base.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef_zero/rest_base.rb b/lib/chef_zero/rest_base.rb
index b6d4b6a..4cf73ba 100644
--- a/lib/chef_zero/rest_base.rb
+++ b/lib/chef_zero/rest_base.rb
@@ -145,7 +145,7 @@ module ChefZero
def set_data(request, rest_path, data, *options)
rest_path ||= request.rest_path
begin
- data_store.set(rest_path, data, *options, :requestor => request.requestor)
+ data_store.set(rest_path, data, *options, requestor: request.requestor)
rescue DataStore::DataNotFoundError
if options.include?(:data_store_exceptions)
raise
@@ -158,7 +158,7 @@ module ChefZero
def create_data_dir(request, rest_path, name, *options)
rest_path ||= request.rest_path
begin
- data_store.create_dir(rest_path, name, *options, :requestor => request.requestor)
+ data_store.create_dir(rest_path, name, *options, requestor: request.requestor)
rescue DataStore::DataNotFoundError
if options.include?(:data_store_exceptions)
raise
@@ -177,7 +177,7 @@ module ChefZero
def create_data(request, rest_path, name, data, *options)
rest_path ||= request.rest_path
begin
- data_store.create(rest_path, name, data, *options, :requestor => request.requestor)
+ data_store.create(rest_path, name, data, *options, requestor: request.requestor)
rescue DataStore::DataNotFoundError
if options.include?(:data_store_exceptions)
raise
@@ -296,7 +296,7 @@ module ChefZero
end
def to_json(data)
- FFI_Yajl::Encoder.encode(data, :pretty => true)
+ FFI_Yajl::Encoder.encode(data, pretty: true)
end
def get_data_or_else(request, path, or_else_value)