Sha256: e0d362986437f2425ebadb1c9bef5d09e093e8c2429da613e9fcd191eb427b6d

Contents?: true

Size: 390 Bytes

Versions: 89

Compression:

Stored size: 390 Bytes

Contents

class Terraspace::CLI::Clean
  class All < Base
    def run
      are_you_sure?
      o = @options.merge(yes: true) # override to avoid double prompt
      Cache.new(o).run
      Logs.new(o).run
    end

    def are_you_sure?
      message = <<~EOL.chomp
        Will remove Terraspace cache and logs.
        Are you sure?
      EOL
      sure?(message) # from Util::Sure
    end
  end
end

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
terraspace-2.2.17 lib/terraspace/cli/clean/all.rb
terraspace-2.2.16 lib/terraspace/cli/clean/all.rb
terraspace-2.2.15 lib/terraspace/cli/clean/all.rb
terraspace-2.2.14 lib/terraspace/cli/clean/all.rb
terraspace-2.2.13 lib/terraspace/cli/clean/all.rb
terraspace-2.2.12 lib/terraspace/cli/clean/all.rb
terraspace-2.2.11 lib/terraspace/cli/clean/all.rb
terraspace-2.2.10 lib/terraspace/cli/clean/all.rb
terraspace-2.2.9 lib/terraspace/cli/clean/all.rb
terraspace-2.2.8 lib/terraspace/cli/clean/all.rb
terraspace-2.2.7 lib/terraspace/cli/clean/all.rb
terraspace-2.2.6 lib/terraspace/cli/clean/all.rb
terraspace-2.2.5 lib/terraspace/cli/clean/all.rb
terraspace-2.2.4 lib/terraspace/cli/clean/all.rb
terraspace-2.2.3 lib/terraspace/cli/clean/all.rb
terraspace-2.2.2 lib/terraspace/cli/clean/all.rb
terraspace-2.2.1 lib/terraspace/cli/clean/all.rb
terraspace-2.2.0 lib/terraspace/cli/clean/all.rb
terraspace-2.1.7 lib/terraspace/cli/clean/all.rb
terraspace-2.1.6 lib/terraspace/cli/clean/all.rb