diff options
author | Thom May <thom@chef.io> | 2017-01-25 15:51:46 +0000 |
---|---|---|
committer | Thom May <thom@chef.io> | 2017-02-14 11:45:44 -0800 |
commit | 46f5722ef83d3d3603e23ac9525c49f4ed43621a (patch) | |
tree | 84724dc91d23b3ef7e5da8da14ffccb4cbc13709 /lib/chef/server_api_versions.rb | |
parent | d4b87e5e0f73d92836b4523907e17b1a88be9317 (diff) | |
download | chef-46f5722ef83d3d3603e23ac9525c49f4ed43621a.tar.gz |
Make it easier to have a versioned factorytm/versioned_api
classes providing an API should include VersionedAPI, whilst the factory
class includes VersionedAPIFactory.
Signed-off-by: Thom May <thom@may.lt>
Diffstat (limited to 'lib/chef/server_api_versions.rb')
-rw-r--r-- | lib/chef/server_api_versions.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/server_api_versions.rb b/lib/chef/server_api_versions.rb index 91591875a4..68dfd5ac90 100644 --- a/lib/chef/server_api_versions.rb +++ b/lib/chef/server_api_versions.rb @@ -32,5 +32,9 @@ class Chef def max_server_version !@versions.nil? ? @versions["max_version"] : nil end + + def reset! + @versions = nil + end end end |