Sha256: 30e742cf350463aa964e9cefce331616fda3bd1ec2f6b28f0f12662214968e96
Contents?: true
Size: 527 Bytes
Versions: 82
Compression:
Stored size: 527 Bytes
Contents
module Fog module Storage class AWS class Real # Sync clock against S3 to avoid skew errors # def sync_clock response = begin get_service rescue Excon::Errors::HTTPStatusError => error error.response end Fog::Time.now = Time.parse(response.headers['Date']) end end # Real class Mock # :nodoc:all def sync_clock true end end # Mock end # Storage end # AWS end # Fog
Version data entries
82 entries across 82 versions & 14 rubygems