lib/convox/client.rb in convox_installer-1.0.7 vs lib/convox/client.rb in convox_installer-1.0.8

- old
+ new

@@ -21,10 +21,12 @@ logger.level = options[:log_level] || Logger::INFO @config = options[:config] || {} end def backup_convox_host_and_rack + FileUtils.mkdir_p CONVOX_DIR + %w[host rack].each do |f| path = File.join(CONVOX_DIR, f) if File.exist?(path) bak_file = "#{path}.bak" logger.info "Moving existing #{path} to #{bak_file}..." @@ -68,12 +70,10 @@ end def rack_already_installed? require_config(%i[ aws_region stack_name ]) - unless File.exist?(AUTH_FILE) - raise "Could not find auth file at #{AUTH_FILE}!" - end + return unless File.exist?(AUTH_FILE) region = config.fetch(:aws_region) stack_name = config.fetch(:stack_name) auth.each do |host, password|