Sha256: b5cd271baace1147c49055d93533b2c033a1639c9076207bcdfb20b598b69327

Contents?: true

Size: 496 Bytes

Versions: 27

Compression:

Stored size: 496 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 => 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

27 entries across 27 versions & 6 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/sync_clock.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/sync_clock.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/sync_clock.rb
ktheory-fog-1.1.2 lib/fog/aws/requests/storage/sync_clock.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/sync_clock.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/sync_clock.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/sync_clock.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/sync_clock.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/sync_clock.rb
fog-1.1.2 lib/fog/aws/requests/storage/sync_clock.rb
fog_tractical-1.1.4 lib/fog/aws/requests/storage/sync_clock.rb
fog_tractical-1.1.3 lib/fog/aws/requests/storage/sync_clock.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/sync_clock.rb
fog-1.1.1 lib/fog/aws/requests/storage/sync_clock.rb
fog-1.1.0 lib/fog/aws/requests/storage/sync_clock.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/sync_clock.rb
tag-fog-1.0.1 lib/fog/aws/requests/storage/sync_clock.rb
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/sync_clock.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/sync_clock.rb
fog-1.0.0 lib/fog/aws/requests/storage/sync_clock.rb