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.1.5 lib/terraspace/cli/clean/all.rb
terraspace-2.1.4 lib/terraspace/cli/clean/all.rb
terraspace-2.1.3 lib/terraspace/cli/clean/all.rb
terraspace-2.1.2 lib/terraspace/cli/clean/all.rb
terraspace-2.1.1 lib/terraspace/cli/clean/all.rb
terraspace-2.1.0 lib/terraspace/cli/clean/all.rb
terraspace-2.0.3 lib/terraspace/cli/clean/all.rb
terraspace-2.0.2 lib/terraspace/cli/clean/all.rb
terraspace-2.0.1 lib/terraspace/cli/clean/all.rb
terraspace-2.0.0 lib/terraspace/cli/clean/all.rb
terraspace-1.1.7 lib/terraspace/cli/clean/all.rb
terraspace-1.1.6 lib/terraspace/cli/clean/all.rb
terraspace-1.1.5 lib/terraspace/cli/clean/all.rb
terraspace-1.1.4 lib/terraspace/cli/clean/all.rb
terraspace-1.1.3 lib/terraspace/cli/clean/all.rb
terraspace-1.1.2 lib/terraspace/cli/clean/all.rb
terraspace-1.1.1 lib/terraspace/cli/clean/all.rb
terraspace-1.1.0 lib/terraspace/cli/clean/all.rb
terraspace-1.0.6 lib/terraspace/cli/clean/all.rb
terraspace-1.0.5 lib/terraspace/cli/clean/all.rb