Sha256: c5d6a3bd9408deac8a78969d6528e5792c035216bd54e86a1c425b2da1d4bf25

Contents?: true

Size: 1.02 KB

Versions: 17

Compression:

Stored size: 1.02 KB

Contents

# frozen_string_literal: true

require 'ehbrs/tools/core_ext'
require 'ehbrs_ruby_utils/music/lyrics_book'
require 'ehbrs_ruby_utils/videos/container'
require 'ultimate_lyrics/provider'

module Ehbrs
  module Tools
    class Runner
      class Music
        class LyricsBook
          runner_with :help, :output do
            arg_opt '-p', '--provider', 'Nome do provedor.',
                    default: ::EhbrsRubyUtils::Music::LyricsBook::DEFAULT_PROVIDER_NAME
            pos_arg :source_dir
          end

          def run
            start_banner
            run_output
          end

          def start_banner
            infov 'Source directory', book.source_dir
            infov 'Selected provider', book.provider
          end

          def book_uncached
            ::EhbrsRubyUtils::Music::LyricsBook.new(parsed.source_dir,
                                                    provider_name: parsed.provider)
          end

          def output_content
            book.output
          end
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ehbrs-tools-0.39.0 lib/ehbrs/tools/runner/music/lyrics_book.rb
ehbrs-tools-0.38.0 lib/ehbrs/tools/runner/music/lyrics_book.rb
ehbrs-tools-0.37.0 lib/ehbrs/tools/runner/music/lyrics_book.rb
ehbrs-tools-0.36.0 lib/ehbrs/tools/runner/music/lyrics_book.rb
ehbrs-tools-0.35.1 lib/ehbrs/tools/runner/music/lyrics_book.rb
ehbrs-tools-0.35.0 lib/ehbrs/tools/runner/music/lyrics_book.rb
ehbrs-tools-0.34.0 lib/ehbrs/tools/runner/music/lyrics_book.rb
ehbrs-tools-0.33.0 lib/ehbrs/tools/runner/music/lyrics_book.rb
ehbrs-tools-0.32.0 lib/ehbrs/tools/runner/music/lyrics_book.rb
ehbrs-tools-0.31.1 lib/ehbrs/tools/runner/music/lyrics_book.rb
ehbrs-tools-0.31.0 lib/ehbrs/tools/runner/music/lyrics_book.rb
ehbrs-tools-0.30.0 lib/ehbrs/tools/runner/music/lyrics_book.rb
ehbrs-tools-0.29.0 lib/ehbrs/tools/runner/music/lyrics_book.rb
ehbrs-tools-0.28.3 lib/ehbrs/tools/runner/music/lyrics_book.rb
ehbrs-tools-0.28.2 lib/ehbrs/tools/runner/music/lyrics_book.rb
ehbrs-tools-0.28.1 lib/ehbrs/tools/runner/music/lyrics_book.rb
ehbrs-tools-0.28.0 lib/ehbrs/tools/runner/music/lyrics_book.rb