Sha256: 11cd02008d722cce39a3696ec1bd34d1941ce65abfcca3fccebac69e833fb578
Contents?: true
Size: 687 Bytes
Versions: 2
Compression:
Stored size: 687 Bytes
Contents
module Ridley # @author Jamie Winsor <jamie@vialstudios.com> module Middleware CONTENT_TYPE = 'content-type'.freeze require 'ridley/middleware/parse_json' require 'ridley/middleware/chef_response' require 'ridley/middleware/chef_auth' require 'ridley/middleware/retry' Faraday.register_middleware :request, chef_auth: -> { Ridley::Middleware::ChefAuth } Faraday.register_middleware :request, retry: -> { Ridley::Middleware::Retry } Faraday.register_middleware :response, json: -> { Ridley::Middleware::ParseJson } Faraday.register_middleware :response, chef_response: -> { Ridley::Middleware::ChefResponse } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ridley-0.8.1 | lib/ridley/middleware.rb |
ridley-0.8.0 | lib/ridley/middleware.rb |