Class: Chef::ServerAPIVersions

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/chef/server_api_versions.rb

Instance Method Summary collapse

Instance Method Details

#max_server_versionObject


32
33
34
# File 'lib/chef/server_api_versions.rb', line 32

def max_server_version
  !@versions.nil? ? Integer(@versions["max_version"]) : nil
end

#min_server_versionObject


28
29
30
# File 'lib/chef/server_api_versions.rb', line 28

def min_server_version
  !@versions.nil? ? Integer(@versions["min_version"]) : nil
end

#reset!Object


36
37
38
# File 'lib/chef/server_api_versions.rb', line 36

def reset!
  @versions = nil
end

#set_versions(versions) ⇒ Object


24
25
26
# File 'lib/chef/server_api_versions.rb', line 24

def set_versions(versions)
  @versions ||= versions
end