chef-zero 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef_zero/rest_base.rb +2 -0
- data/lib/chef_zero/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7ed5dd8948e759d7ff44ccbc8eb4c99d55272f1
|
4
|
+
data.tar.gz: f9bb0c1e71bd100f1df405c251da8fcf92908879
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af1b4f1e43fa810539c2541fbe5eea52966dcbfb014804672e4075329eb1201f9b89b6d4cd27b48fb68ade9d7e4d19c012af3ca1684de0cd722ab8a57cbf2b4f
|
7
|
+
data.tar.gz: 265e2a81198d21af35f3c5372e8cd3c847913211d9145abb14e060ff62e158847543902df616c80208f4327911a4ba6da2555dea9a25b03780d9252979c6bf2b
|
data/lib/chef_zero/rest_base.rb
CHANGED
@@ -119,6 +119,7 @@ module ChefZero
|
|
119
119
|
[response_code, {"Content-Type" => "application/json"}, json_text]
|
120
120
|
end
|
121
121
|
|
122
|
+
# To be called from inside rest endpoints
|
122
123
|
def build_uri(base_uri, rest_path)
|
123
124
|
if server.options[:single_org]
|
124
125
|
# Strip off /organizations/chef if we are in single org mode
|
@@ -132,6 +133,7 @@ module ChefZero
|
|
132
133
|
end
|
133
134
|
|
134
135
|
def self.build_uri(base_uri, rest_path)
|
136
|
+
"#{base_uri}/#{rest_path.join('/')}"
|
135
137
|
end
|
136
138
|
|
137
139
|
def populate_defaults(request, response)
|
data/lib/chef_zero/version.rb
CHANGED