lib/fog/aws/requests/cdn/get_invalidation.rb in fog-1.22.0 vs lib/fog/aws/requests/cdn/get_invalidation.rb in fog-1.22.1
- old
+ new
@@ -1,10 +1,9 @@
module Fog
module CDN
class AWS
class Real
-
require 'fog/aws/parsers/cdn/get_invalidation'
# Get invalidation.
#
# @param distribution_id [String] Distribution id.
@@ -27,15 +26,13 @@
:method => 'GET',
:parser => Fog::Parsers::CDN::AWS::GetInvalidation.new,
:path => "/distribution/#{distribution_id}/invalidation/#{invalidation_id}"
})
end
-
end
class Mock
-
def get_invalidation(distribution_id, invalidation_id)
distribution = self.data[:distributions][distribution_id]
unless distribution
Fog::CDN::AWS::Mock.error(:no_such_distribution)
end
@@ -53,10 +50,9 @@
response = Excon::Response.new
response.status = 200
response.body = invalidation
response
end
-
end
end
end
end