aws-sdk 1.8.3 → 1.8.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -404,7 +404,7 @@ module AWS
404
404
  # @option options [String] :simple_email_service_endpoint ('email.us-east-1.amazonaws.com')
405
405
  # The service endpoint for Amazon Simple Email Service.
406
406
  #
407
- # @option options [String] :simple_workflow_service ('swf.us-east-1.amazonaws.com')
407
+ # @option options [String] :simple_workflow_endpoint ('swf.us-east-1.amazonaws.com')
408
408
  # The service endpoint for Amazon Simple Workflow Service.
409
409
  #
410
410
  # @option options [CredentialProviders::Provider] :credential_provider (AWS::Core::CredentialProviders::DefaultProvider.new)
@@ -143,6 +143,7 @@ module AWS
143
143
 
144
144
  alias_method :launch_permissions, :permissions
145
145
 
146
+ # @note This method will not return data for ephemeral volumes.
146
147
  # @return [Hash] Returns a hash of block
147
148
  # device mappings for the image. In each entry, the key is
148
149
  # the device name (e.g. +"/dev/sda1"+) and the value is an
@@ -156,13 +157,22 @@ module AWS
156
157
  #
157
158
  # [:delete_on_termination] True if the Amazon EBS volume is
158
159
  # deleted on instance termination.
160
+ # @see {#block_devices}
159
161
  def block_device_mappings
160
- (block_device_mapping || []).inject({}) do |h,mapping|
161
- h[mapping.device_name] = mapping.ebs
162
+ (block_device_mapping || []).inject({}) do |h, mapping|
163
+ if ebs = mapping[:ebs]
164
+ h[mapping[:device_name]] = ebs
165
+ end
162
166
  h
163
167
  end
164
168
  end
165
169
 
170
+ # @return [Array<Hash>] Returns a list of all block device mappings.
171
+ # This list may contain ephemeral volumes.
172
+ def block_devices
173
+ block_device_mapping.to_a
174
+ end
175
+
166
176
  # Deregisters this AMI. Once deregistered, the AMI cannot be
167
177
  # used to launch new instances.
168
178
  # @return [nil]
@@ -14,5 +14,5 @@
14
14
 
15
15
  module AWS
16
16
  # Current version of the AWS SDK for Ruby
17
- VERSION = '1.8.3'
17
+ VERSION = '1.8.3.1'
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.3
4
+ version: 1.8.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-19 00:00:00.000000000 Z
12
+ date: 2013-02-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: uuidtools
@@ -622,7 +622,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
622
622
  version: '0'
623
623
  requirements: []
624
624
  rubyforge_project:
625
- rubygems_version: 1.8.23
625
+ rubygems_version: 1.8.24
626
626
  signing_key:
627
627
  specification_version: 3
628
628
  summary: AWS SDK for Ruby