lib/convox_installer/config.rb in convox_installer-2.0.0 vs lib/convox_installer/config.rb in convox_installer-3.0.0
- old
+ new
@@ -36,10 +36,16 @@
title: 'AWS Access Key ID'
},
{
key: :aws_secret_access_key,
title: 'AWS Secret Access Key'
+ },
+ # Short random ID used to ensure that resources are always unique
+ {
+ key: :random_id,
+ value: -> { SecureRandom.hex(4) },
+ hidden: true
}
].freeze
def initialize(options = {})
@logger = Logger.new($stdout)
@@ -73,9 +79,11 @@
show_config_summary
@completed_prompt = true
highline.say 'Please double check all of these configuration details.'
+
+ break if ENV['AUTOSTART_CONVOX_INSTALLATION']
agree = highline.agree(
'Would you like to start the Convox installation?' \
" (press 'n' to correct any settings)"
)