Class: AstroSubframeOrganizer::Commands::Cleanup::Unorganize

Inherits:
Dry::CLI::Command
  • Object
show all
Includes:
SharedOptions
Defined in:
lib/astro_subframe_organizer/commands/cleanup/unorganize.rb

Instance Method Summary collapse

Methods included from SharedOptions

included, #setup

Instance Method Details

#call(config: nil, verbose: false, dry_run: false, path: Dir.pwd) ⇒ Object

rubocop:enable Layout/LineLength



18
19
20
21
# File 'lib/astro_subframe_organizer/commands/cleanup/unorganize.rb', line 18

def call(config: nil, verbose: false, dry_run: false, path: Dir.pwd, **)
  setup(config: config, verbose: verbose)
  AstroSubframeOrganizer::Utils::Unorganizer.new(path).unorganize(dry_run: dry_run, verbose: verbose)
end