Sha256: 5d876a4e027556fc69c3066b126c5964585ab1243966b22497f1f764a20b2f94
Contents?: true
Size: 909 Bytes
Versions: 30
Compression:
Stored size: 909 Bytes
Contents
# Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompanying this file. This file is # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF # ANY KIND, either express or implied. See the License for the specific # language governing permissions and limitations under the License. AWS::Core::Configuration.module_eval do add_service 'EC2', 'ec2', 'ec2' add_option :ec2_signature_version do |config, value| if config.ec2_region.match(/^cn-/) :v4 elsif value value elsif config.ec2 && config.ec2[:signature_version] config.ec2[:signature_version] else :v2 end end end
Version data entries
30 entries across 30 versions & 1 rubygems