ddbcli 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|