Sha256: 6ff6ffa5b9178858c514763461f2080e7af3b633834c8b6849df2daa3f785181

Contents?: true

Size: 364 Bytes

Versions: 4

Compression:

Stored size: 364 Bytes

Contents

require 'renuo_bin_check/printer'

module RenuoBinCheck
  class Initializer
    attr_reader :master_thread

    def initialize
      @master_thread = MasterThread.new(Printer.new)
    end

    def check
      config = ScriptConfig.new
      yield(config)
      @master_thread.add_thread(config)
    end

    def run
      @master_thread.finalize
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
renuo-bin-check-1.0.0.beta2 lib/renuo_bin_check/initializer.rb
renuo-bin-check-1.0.0.beta1 lib/renuo_bin_check/initializer.rb
renuo-bin-check-0.2.1 lib/renuo_bin_check/initializer.rb
renuo-bin-check-0.2.0 lib/renuo_bin_check/initializer.rb