Class: Clear
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Clear
- Includes:
- Thor::Actions
- Defined in:
- lib/centuria/commands/clear.rb
Instance Method Summary collapse
Instance Method Details
#remove_all ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/centuria/commands/clear.rb', line 8 def remove_all puts "are you sure remove it?(Y or N)" clear = STDIN.gets.chomp if clear == "Y" || clear == "y" if Dir.exist?("#{name}") || File.exist?("#{name}") remove_file name puts "finish remove to your request! name: #{name}" else puts "your request file: #{name} is not exist." end else puts "back home without delete it." end end |