Class: Dri::Commands::Rm::Reports
- Inherits:
-
Dri::Command
- Object
- Dri::Command
- Dri::Commands::Rm::Reports
- Defined in:
- lib/dri/commands/rm/reports.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(options) ⇒ Reports
constructor
A new instance of Reports.
Methods inherited from Dri::Command
#add_color, #api_client, #bold, #command, #cursor, #editor, #pastel, #prompt, #spinner, #verify_config_exists
Methods included from Utils::Helpers
Constructor Details
#initialize(options) ⇒ Reports
Returns a new instance of Reports.
9 10 11 |
# File 'lib/dri/commands/rm/reports.rb', line 9 def initialize() = end |
Instance Method Details
#execute ⇒ Object
13 14 15 |
# File 'lib/dri/commands/rm/reports.rb', line 13 def execute(*) FileUtils.rm_rf(handover_report_path) if prompt.yes?("Remove everything in #{handover_report_path}?") end |