def cookbooks_paths
        @cookbooks_paths ||= begin
          paths = [
            @options[:cookbooks_path],
            Berkshelf.chef_config[:cookbook_path],
            'cookbooks'
          ].flatten.compact.map{ |path| Pathname.new(File.expand_path(path)) }.uniq

          paths.select!{ |path| File.exists?(path) }
          Strainer.ui.debug "Setting Sandbox#cookbooks_paths to #{paths.map(&:to_s)}"
          paths
        end
      end
def cookbooks_paths
        @cookbooks_paths ||= begin
          paths = [
            @options[:cookbooks_path],
            Berkshelf.chef_config[:cookbook_path],
            'cookbooks'
          ].flatten.compact.map{ |path| Pathname.new(File.expand_path(path)) }.uniq

          paths.select!{ |path| File.exists?(path) }
          Strainer.ui.debug "Setting Sandbox#cookbooks_paths to #{paths.map(&:to_s)}"
          paths
        end
      end
Dynamically builds a list of possible cookbook paths from the
 `@options` hash, Berkshelf config, and Chef config, and a logical
 guess

 @return [Array<Pathname>]
   a list of possible cookbook locations