lib/jets/aws_info.rb in jets-1.6.0 vs lib/jets/aws_info.rb in jets-1.6.1
- old
+ new
@@ -18,13 +18,13 @@
region = `aws configure get region 2>&1`.strip rescue nil
exit_code = $?.exitstatus
if exit_code != 0
exception_message = region.split("\n").grep(/botocore\.exceptions/).first
if exception_message
- puts "WARN: #{exception_message}".colorize(:yellow)
+ puts "WARN: #{exception_message}".color(:yellow)
else
# show full message as warning
- puts region.colorize(:yellow)
+ puts region.color(:yellow)
end
puts "You can also get rid of this message by setting AWS_REGION or configuring ~/.aws/config with the region"
region = nil
end
region = nil if region == ''