aws-carb 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9530ee3620b1bc7a976efb50b8bfa152c0f42a0e
4
- data.tar.gz: e983aab1493873a004ff5b01dfc7ca3d222121f7
3
+ metadata.gz: 19fc64169fc88e5ce4bdfef17a52f2d233cf74da
4
+ data.tar.gz: ec9b44e8702bccb8bbabe4e3e9337de20475be3f
5
5
  SHA512:
6
- metadata.gz: 09129e29ba115c46efef7cb4f4dad4ce63c0808712f6cd230e05cc6a54f8f020e231027c4a647cf9f468a0ae7fe93572b72e600b97cdc2a41cc505a387691056
7
- data.tar.gz: 4f8d77b092014073128a9e23ef3e9e5f4cb63e357af090b02f8ac29b9abc3e984daa58f53c761e1950f29514efb876533fc3f7b0f640eea97ef9c1805744cee2
6
+ metadata.gz: 21bf4ccc56724803da05635bdd1de6898a782caa32761a753350c3dd74275be730cd7cdf3226049bc616bac45dc1b675b9cf28947f52fe2b8cb4b6a67a8094a5
7
+ data.tar.gz: 462bd7aef352740406d6efb07373a8ed62584864c032f469c0583dcd01d581bdaac55cce468065f7f6d7b9fcd307f5822c72e21226642ba14735ca29c381a433
@@ -202,7 +202,6 @@ module AWSCarb
202
202
 
203
203
  option.separator ""
204
204
 
205
-
206
205
  block_device_help = <<-HEREDOC.strip_heredoc
207
206
 
208
207
  :virtual_name - (String) Specifies the virtual device name.
@@ -223,7 +222,14 @@ module AWSCarb
223
222
  block_device_help = "\n\n#{indent}Specifies how block devices are exposed to the instance. Each mapping\n#{indent}is made up of a virtualName and a deviceName.\n" + block_device_help.join.downcase
224
223
 
225
224
  option.on "--block-device-mappings=HASH", block_device_help do |mapping|
226
- cli_arguments.subcommand.ec2.block_device_mappings = mapping
225
+ begin
226
+ data = eval(mapping)
227
+ raise unless data.class == Hash
228
+ cli_arguments.subcommand.ec2.block_device_mappings = data
229
+ rescue => e
230
+ puts "# could not parse argument for --common-variables, is it a valid hash?"
231
+ die e
232
+ end
227
233
  end
228
234
 
229
235
  option.separator ""
@@ -1,3 +1,3 @@
1
1
  module AWSCarb
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-carb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Wilson