Sha256: 56427ac659653cbc921139bfb6bb760edc805d0161426e766afc069a269d4a9b

Contents?: true

Size: 705 Bytes

Versions: 11

Compression:

Stored size: 705 Bytes

Contents

module LessonsIndexer
  class Starter
    attr_reader :options

    def initialize(argv)
      @options = Options.new(argv)
    end

    def start!
      with_messages("=== [ Welcome to Lessons Indexer ver#{LessonsIndexer::VERSION}! ] ===", "=== [ DONE. ] ===", false) do
        indexer = Indexer.new(options)

        within options.path do
          if options.all
            brancher = GitManager::Brancher.new
            brancher.get_branches.each do |branch|
              brancher.within_branch branch do
                indexer.do_work!
              end
            end
          else
            indexer.do_work!
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
lessons_indexer-1.0.2.1 lib/lessons_indexer/starter.rb
lessons_indexer-1.0.0 lib/lessons_indexer/starter.rb
lessons_indexer-0.3.1 lib/lessons_indexer/starter.rb
lessons_indexer-0.3.0 lib/lessons_indexer/starter.rb
lessons_indexer-0.2.3 lib/lessons_indexer/starter.rb
lessons_indexer-0.2.2 lib/lessons_indexer/starter.rb
lessons_indexer-0.2.1 lib/lessons_indexer/starter.rb
lessons_indexer-0.2.0 lib/lessons_indexer/starter.rb
lessons_indexer-0.1.2 lib/lessons_indexer/starter.rb
lessons_indexer-0.1.1 lib/lessons_indexer/starter.rb
lessons_indexer-0.1.0 lib/lessons_indexer/starter.rb