Sha256: 4c73abbf24c574cf845dd663973035a8afe881ac5fdfc55c829425468bb36204

Contents?: true

Size: 709 Bytes

Versions: 3

Compression:

Stored size: 709 Bytes

Contents

module RSpactor
  
  autoload :UI,             'rspactor/ui'
  autoload :Interactor,     'rspactor/interactor'
  autoload :Listener,       'rspactor/listener'
  autoload :Inspector,      'rspactor/inspector'
  autoload :Runner,         'rspactor/runner'
  
  class << self
    attr_reader :options, :listener, :runner
    
    def start(options = {})
      @options  = options
      @listener = Listener.new
      @runner   = Runner.new
      Interactor.init_signal_traps
      listener.watch do |files|
        Inspector.determine_spec_paths(files)
        runner.start if Inspector.spec_paths?
      end
      UI.info "RSpactor is now watching at '#{Dir.pwd}'"
      listener.start
    end
    
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rspactor-0.7.0.beta.3 lib/rspactor.rb
rspactor-0.7.0.beta.2 lib/rspactor.rb
rspactor-0.7.0.beta.1 lib/rspactor.rb