Sha256: b008f13230e0f53394663c91191bcdca29184abad3a1dbdf0d41fae05c2827cc

Contents?: true

Size: 671 Bytes

Versions: 55

Compression:

Stored size: 671 Bytes

Contents

require 'pathname'

module Listen
  module Adapter
    class Config
      attr_reader :directories
      attr_reader :silencer
      attr_reader :queue
      attr_reader :adapter_options

      def initialize(directories, queue, silencer, adapter_options)
        # Default to current directory if no directories are supplied
        directories = [Dir.pwd] if directories.to_a.empty?

        # TODO: fix (flatten, array, compact?)
        @directories = directories.map do |directory|
          Pathname.new(directory.to_s).realpath
        end

        @silencer = silencer
        @queue = queue
        @adapter_options = adapter_options
      end
    end
  end
end

Version data entries

55 entries across 48 versions & 9 rubygems

Version Path
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/gems/listen-3.1.5/lib/listen/adapter/config.rb
vagrant-unbundled-2.2.0.0 vendor/bundle/ruby/2.5.0/gems/listen-3.1.5/lib/listen/adapter/config.rb
vagrant-unbundled-2.1.4.0 vendor/bundle/ruby/2.5.0/gems/listen-3.1.5/lib/listen/adapter/config.rb
vagrant-unbundled-2.1.2.0 vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/config.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/config.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/listen-3.1.5/lib/listen/adapter/config.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/listen-3.1.5/lib/listen/adapter/config.rb
vagrant-unbundled-2.1.1.0 vendor/bundle/ruby/2.5.0/gems/listen-3.1.5/lib/listen/adapter/config.rb
vagrant-unbundled-2.0.4.0 vendor/bundle/ruby/2.5.0/gems/listen-3.1.5/lib/listen/adapter/config.rb
vagrant-unbundled-2.0.3.0 vendor/bundle/ruby/2.5.0/gems/listen-3.1.5/lib/listen/adapter/config.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.5.0/gems/listen-3.1.5/lib/listen/adapter/config.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.4.0/gems/listen-3.1.5/lib/listen/adapter/config.rb
comiditaULL-0.1.1 vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/config.rb
comidita_ull-0.1.1 vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/config.rb
comidita_ull-0.1.0 vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/config.rb
vagrant-unbundled-2.0.1.0 vendor/bundle/ruby/2.4.0/gems/listen-3.1.5/lib/listen/adapter/config.rb
vagrant-unbundled-2.0.0.1 vendor/bundle/ruby/2.4.0/gems/listen-3.1.5/lib/listen/adapter/config.rb
vagrant-unbundled-1.9.8.1 vendor/bundle/ruby/2.4.0/gems/listen-3.1.5/lib/listen/adapter/config.rb
vagrant-unbundled-1.9.7.1 vendor/bundle/ruby/2.4.0/gems/listen-3.1.5/lib/listen/adapter/config.rb
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/gems/listen-3.1.5/lib/listen/adapter/config.rb