summaryrefslogtreecommitdiff
path: root/lib/chef/digester.rb
diff options
context:
space:
mode:
authorGrzesiek Kolodziejczyk <gkolodziejczyk@gmail.com>2014-08-12 21:06:14 +0200
committerLamont Granquist <lamont@scriptkiddie.org>2014-08-20 11:23:35 -0700
commit29bb67affb6af2f54d7330bd8ad432b289614566 (patch)
tree737eebec80ff1d1aedf44b854ef464ef1fa49eeb /lib/chef/digester.rb
parent281fc5a3a120c2fca42ffe7f8d273debdf530cfe (diff)
downloadchef-29bb67affb6af2f54d7330bd8ad432b289614566.tar.gz
Use thread-safe Singleton mixin for Digester
Diffstat (limited to 'lib/chef/digester.rb')
-rw-r--r--lib/chef/digester.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/chef/digester.rb b/lib/chef/digester.rb
index 669ff8b8a5..379dfdaa50 100644
--- a/lib/chef/digester.rb
+++ b/lib/chef/digester.rb
@@ -22,10 +22,7 @@ require 'digest'
class Chef
class Digester
-
- def self.instance
- @instance ||= new
- end
+ include Singleton
def self.checksum_for_file(*args)
instance.checksum_for_file(*args)
@@ -70,4 +67,3 @@ class Chef
end
end
-