lib/codebuild/stack.rb in codebuild-0.4.0 vs lib/codebuild/stack.rb in codebuild-0.5.0
- old
+ new
@@ -46,9 +46,10 @@
puts "Deploying stack #{@stack_name.color(:green)} with CodeBuild project #{@full_project_name.color(:green)}"
begin
perform
url_info
+ return unless @options[:wait]
status.wait
exit 2 unless status.success?
rescue Aws::CloudFormation::Errors::ValidationError => e
if e.message.include?("No updates") # No updates are to be performed.
puts "WARN: #{e.message}".color(:yellow)