summaryrefslogtreecommitdiff
path: root/lib/chef_zero/endpoints/containers_endpoint.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2019-12-29 18:00:24 -0800
committerTim Smith <tsmith84@gmail.com>2019-12-29 18:00:24 -0800
commitecad8fee4a946b337e60a4274de2b2c872c9e81b (patch)
treebbf7fc8b3feae42007f7b9d7fe53648d315c410a /lib/chef_zero/endpoints/containers_endpoint.rb
parenta8206d6c6f03de1fde15c49f6fe9ddb1d0071b7a (diff)
downloadchef-zero-ecad8fee4a946b337e60a4274de2b2c872c9e81b.tar.gz
Apply Chefstyle
Autocorrect with the latest chefstyle Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef_zero/endpoints/containers_endpoint.rb')
-rw-r--r--lib/chef_zero/endpoints/containers_endpoint.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef_zero/endpoints/containers_endpoint.rb b/lib/chef_zero/endpoints/containers_endpoint.rb
index e8708ed..2260765 100644
--- a/lib/chef_zero/endpoints/containers_endpoint.rb
+++ b/lib/chef_zero/endpoints/containers_endpoint.rb
@@ -15,7 +15,7 @@ module ChefZero
data = parse_json(request.body)
# if they don't match, id wins.
container_name = data["id"] || data["containername"]
- container_path_suffix = data["containerpath"].split("/").reject { |o| o.empty? }
+ container_path_suffix = data["containerpath"].split("/").reject(&:empty?)
create_data(request, request.rest_path, container_name, to_json({}), :create_dir)
json_response(201, { uri: build_uri(request.base_uri, request.rest_path + container_path_suffix + [container_name]) })