summaryrefslogtreecommitdiff
path: root/lib/chef_zero/rest_request.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef_zero/rest_request.rb')
-rw-r--r--lib/chef_zero/rest_request.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef_zero/rest_request.rb b/lib/chef_zero/rest_request.rb
index 60738cf..f18ce4d 100644
--- a/lib/chef_zero/rest_request.rb
+++ b/lib/chef_zero/rest_request.rb
@@ -41,6 +41,10 @@ module ChefZero
@rest_path ||= rest_base_prefix + env['PATH_INFO'].split('/').select { |part| part != "" }
end
+ def rest_path=(rest_path)
+ @rest_path = rest_path
+ end
+
def body=(body)
@body = body
end