Class: AstroSubframeOrganizer::Commands::Cleanup::EmptyDirectories
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- AstroSubframeOrganizer::Commands::Cleanup::EmptyDirectories
- Includes:
- SharedOptions
- Defined in:
- lib/astro_subframe_organizer/commands/cleanup/empty_directories.rb
Instance Method Summary collapse
Methods included from SharedOptions
Instance Method Details
#call(dry_run: false, path: Dir.pwd, **options) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/astro_subframe_organizer/commands/cleanup/empty_directories.rb', line 17 def call(dry_run: false, path: Dir.pwd, **) setup(**.slice(:config, :verbose, :skip_confirm)) AstroSubframeOrganizer::Utils::EmptyDirectoryCleaner.new(path).cleanup( dry_run: dry_run, verbose: [:verbose], ) end |