class FLACsmith::CLI::Actions::Encode
Handles the encode action.
Attributes
encoder[R]
Public Class Methods
new(encoder: Encoders::Album, **dependencies)
click to toggle source
Calls superclass method
# File lib/flacsmith/cli/actions/encode.rb, line 10 def initialize encoder: Encoders::Album, **dependencies super(**dependencies) @encoder = encoder end
Public Instance Methods
call(source_dir, target_dir, image_path: nil)
click to toggle source
# File lib/flacsmith/cli/actions/encode.rb, line 15 def call source_dir, target_dir, image_path: nil logger.info { "Encoding: #{source_dir} to #{target_dir}..." } encoder.new(input_dir: source_dir, output_dir: target_dir, image_path:).call end