Sha256: 0e41a98224df1f875342608f146d3924df379dee0a64e46dec953965a1343557

Contents?: true

Size: 401 Bytes

Versions: 36

Compression:

Stored size: 401 Bytes

Contents

class Ufo::CLI
  class Cancel < Base
    def run
      are_you_sure?
      stack = Ufo::Cfn::Stack.new(@options)
      stack.cancel
      stack.status.wait
    end

    def are_you_sure?
      if @options[:yes]
        logger.info "Canceling the #{@stack_name.color(:green)} stack"
      else
        sure?("You are about to cancel the #{@stack_name.color(:green)} stack")
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
ufo-6.3.13 lib/ufo/cli/cancel.rb
ufo-6.3.12 lib/ufo/cli/cancel.rb
ufo-6.3.11 lib/ufo/cli/cancel.rb
ufo-6.3.10 lib/ufo/cli/cancel.rb
ufo-6.3.9 lib/ufo/cli/cancel.rb
ufo-6.3.8 lib/ufo/cli/cancel.rb
ufo-6.3.7 lib/ufo/cli/cancel.rb
ufo-6.3.6 lib/ufo/cli/cancel.rb
ufo-6.3.5 lib/ufo/cli/cancel.rb
ufo-6.3.4 lib/ufo/cli/cancel.rb
ufo-6.3.3 lib/ufo/cli/cancel.rb
ufo-6.3.2 lib/ufo/cli/cancel.rb
ufo-6.3.1 lib/ufo/cli/cancel.rb
ufo-6.3.0 lib/ufo/cli/cancel.rb
ufo-6.2.5 lib/ufo/cli/cancel.rb
ufo-6.2.4 lib/ufo/cli/cancel.rb
ufo-6.2.3 lib/ufo/cli/cancel.rb
ufo-6.2.2 lib/ufo/cli/cancel.rb
ufo-6.2.1 lib/ufo/cli/cancel.rb
ufo-6.2.0 lib/ufo/cli/cancel.rb