    # File lib/chef/resource.rb, line 828
        def self.provides(short_name, opts={})
          short_name_sym = short_name
          if short_name.kind_of?(String)
            short_name.downcase!
            short_name.gsub!(/\s/, "_")
            short_name_sym = short_name.to_sym
          end
          if opts.has_key?(:on_platforms)
            platforms = [opts[:on_platforms]].flatten
            platforms.each do |p|
              p = :default if :all == p.to_sym
              platform_map.set(
                :platform => p.to_sym,
                :short_name => short_name_sym,
                :resource => self
              )
            end
          else
            platform_map.set(
              :short_name => short_name_sym,
              :resource => self
            )
          end
        end