Class: FLACsmith::CLI::Actions::List

Inherits:
Object
  • Object
show all
Defined in:
lib/flacsmith/cli/actions/list.rb

Overview

Handles the list action.

Instance Method Summary collapse

Constructor Details

#initialize(tagger: Metadata::Tagger, **dependencies) ⇒ List

Returns a new instance of List.



14
15
16
17
# File 'lib/flacsmith/cli/actions/list.rb', line 14

def initialize tagger: Metadata::Tagger, **dependencies
  super(**dependencies)
  @tagger = tagger
end

Instance Method Details

#call(source_dir) ⇒ Object



19
20
21
22
23
24
# File 'lib/flacsmith/cli/actions/list.rb', line 19

def call source_dir
  Pathname(source_dir).files("**/*.flac").each do |path|
    logger.info { "FILE = #{path}" }
    tag path
  end
end