Sha256: 82f0c3cb43bc86a2ab5ae1dcd8b7d82b6520297afcfb545e480df7717015c1dd

Contents?: true

Size: 897 Bytes

Versions: 29

Compression:

Stored size: 897 Bytes

Contents

#
# Author:: Adam Jacob (<adam@opscode.com>)
# Copyright:: Copyright (c) 2008 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# 
#     http://www.apache.org/licenses/LICENSE-2.0
# 
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

require 'digest/sha2'
require 'chef/cache/checksum'

class Chef
  module Mixin
    module Checksum

      def checksum(file)
        Chef::Cache::Checksum.checksum_for_file(file)
      end
      
    end
  end
end

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
tecnh-chef-0.9.9.vpc lib/chef/mixin/checksum.rb
chef-0.9.8 lib/chef/mixin/checksum.rb
chef-0.9.8.rc.0 lib/chef/mixin/checksum.rb
chef-0.9.8.beta.2 lib/chef/mixin/checksum.rb
chef-0.9.8.beta.1 lib/chef/mixin/checksum.rb
chef-0.9.6 lib/chef/mixin/checksum.rb
chef-0.9.4 lib/chef/mixin/checksum.rb
chef-0.9.2 lib/chef/mixin/checksum.rb
chef-0.9.0 lib/chef/mixin/checksum.rb
chef-0.9.0.rc02 lib/chef/mixin/checksum.rb
chef-0.9.0.rc01 lib/chef/mixin/checksum.rb
chef-0.9.0.b02 lib/chef/mixin/checksum.rb
chef-0.9.0.b01 lib/chef/mixin/checksum.rb
chef-0.9.0.a92 lib/chef/mixin/checksum.rb
chef-0.9.0.a91 lib/chef/mixin/checksum.rb
chef-0.9.0.a90 lib/chef/mixin/checksum.rb
chef-0.9.0.a10 lib/chef/mixin/checksum.rb
chef-0.9.0.a8 lib/chef/mixin/checksum.rb
chef-0.9.0.a6 lib/chef/mixin/checksum.rb
chef-0.9.0.a4 lib/chef/mixin/checksum.rb