def cookbook_version(name = nil)
      cookbook = name.nil? ? cookbook_name : name
      node.run_context.cookbook_collection[cookbook].metadata.version
    end
def cookbook_version(name = nil)
      cookbook = name.nil? ? cookbook_name : name
      node.run_context.cookbook_collection[cookbook].metadata.version
    end
Retrieve the version number of the cookbook in the run list.

 @param name [String]
   name of cookbook to retrieve the version on.

 @return [Integer]
   version of the cookbook.

 @api public