ddbcli 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/ddbcli +1 -1
- data/lib/ddbcli/cli/options.rb +6 -0
- metadata +1 -1
data/bin/ddbcli
CHANGED
data/lib/ddbcli/cli/options.rb
CHANGED
@@ -51,6 +51,12 @@ def parse_options
|
|
51
51
|
|
52
52
|
opt.parse!
|
53
53
|
|
54
|
+
if options.ddb_endpoint_or_region.kind_of?(URI) and not (options.access_key_id and options.secret_access_key)
|
55
|
+
options.access_key_id = 'scott'
|
56
|
+
options.secret_access_key = 'tiger'
|
57
|
+
puts 'Warning: dummy auth key was set because ACCESS_KEY/SECRET_KEY is not set'
|
58
|
+
end
|
59
|
+
|
54
60
|
unless options.access_key_id and options.secret_access_key and options.ddb_endpoint_or_region
|
55
61
|
puts opt.help
|
56
62
|
exit 1
|