Class: Terraspace::CLI::Clean::All
- Inherits:
-
Base
- Object
- Base
- Terraspace::CLI::Clean::All
show all
- Defined in:
- lib/terraspace/cli/clean/all.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize
#pretty_path, #pretty_time
Methods included from Util::Sure
#sure?
#logger
Instance Method Details
#are_you_sure? ⇒ Boolean
10
11
12
13
14
15
16
|
# File 'lib/terraspace/cli/clean/all.rb', line 10
def are_you_sure?
message = " Will remove Terraspace cache and logs.\n Are you sure?\n EOL\n sure?(message) # from Util::Sure\nend\n".chomp
|
#run ⇒ Object
3
4
5
6
7
8
|
# File 'lib/terraspace/cli/clean/all.rb', line 3
def run
are_you_sure?
o = @options.merge(yes: true)
Cache.new(o).run
Logs.new(o).run
end
|