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 +4 -4
- data/lib/aws-carb/cli_argument_parser.rb +8 -2
- data/lib/aws-carb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19fc64169fc88e5ce4bdfef17a52f2d233cf74da
|
4
|
+
data.tar.gz: ec9b44e8702bccb8bbabe4e3e9337de20475be3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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 ""
|
data/lib/aws-carb/version.rb
CHANGED