lib/omnibus/packagers/base.rb
def resource_path(name)
      local = File.join(resources_path, name)

      if File.exist?(local)
        log.info(log_key) { "Using local resource `#{name}' from `#{local}'" }
        local
      else
        log.debug(log_key) { "Using vendored resource `#{name}'" }
        Omnibus.source_root.join("resources/#{id}/#{name}").to_s
      end
    end
def resource_path(name)
      local = File.join(resources_path, name)

      if File.exist?(local)
        log.info(log_key) { "Using local resource `#{name}' from `#{local}'" }
        local
      else
        log.debug(log_key) { "Using vendored resource `#{name}'" }
        Omnibus.source_root.join("resources/#{id}/#{name}").to_s
      end
    end
@!group Resource methods
 --------------------------------------------------

 The preferred path to a resource on disk with the given +name+. This
 method will perform an "intelligent" search for a resource by first
 looking in the local project expected {#resources_path}, and then falling
 back to Omnibus' files.

 @example When the resource exists locally
   resource_path("spec.erb") #=> "/path/to/project/resources/rpm/spec.erb"

 @example When the resource does not exist locally
   resource_path("spec.erb") #=> "/omnibus-x.y.z/resources/rpm/spec.erb"

 @param [String] name
   the name of the resource on disk to find