def download(path_or_url)
      raise "`download` requires a string" unless path_or_url.kind_of?(String)
      raise "URL is not https, for security reasons `danger` only supports encrypted requests" if URI.parse(path_or_url).scheme != "https"

      require "tmpdir"
      require "faraday"

      @http_client ||= Faraday.new do |b|
        b.adapter :net_http
      end
      content = @http_client.get(path_or_url)

      path = File.join(Dir.mktmpdir, "temporary_danger.rb")
      File.write(path, content.body)
      return path
    end
def download(path_or_url)
      raise "`download` requires a string" unless path_or_url.kind_of?(String)
      raise "URL is not https, for security reasons `danger` only supports encrypted requests" if URI.parse(path_or_url).scheme != "https"

      require "tmpdir"
      require "faraday"

      @http_client ||= Faraday.new do |b|
        b.adapter :net_http
      end
      content = @http_client.get(path_or_url)

      path = File.join(Dir.mktmpdir, "temporary_danger.rb")
      File.write(path, content.body)
      return path
    end
@!group Plugins
 Download a local or remote plugin or Dangerfile.
 This method will not import the file for you, use plugin.import instead

 @param    [String] path_or_url
           a local path or a https URL to the Ruby file to import
           a danger plugin from.
 @return [String] The path to the downloaded Ruby file