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.1.5 lib/ufo/cli/cancel.rb
ufo-6.1.4 lib/ufo/cli/cancel.rb
ufo-6.1.3 lib/ufo/cli/cancel.rb
ufo-6.1.2 lib/ufo/cli/cancel.rb
ufo-6.1.1 lib/ufo/cli/cancel.rb
ufo-6.1.0 lib/ufo/cli/cancel.rb
ufo-6.0.9 lib/ufo/cli/cancel.rb
ufo-6.0.8 lib/ufo/cli/cancel.rb
ufo-6.0.7 lib/ufo/cli/cancel.rb
ufo-6.0.6 lib/ufo/cli/cancel.rb
ufo-6.0.5 lib/ufo/cli/cancel.rb
ufo-6.0.4 lib/ufo/cli/cancel.rb
ufo-6.0.3 lib/ufo/cli/cancel.rb
ufo-6.0.2 lib/ufo/cli/cancel.rb
ufo-6.0.1 lib/ufo/cli/cancel.rb
ufo-6.0.0 lib/ufo/cli/cancel.rb