Sha256: 0dd4ea419cae3a61f877e8c17c65b84b0f5258094dd39db9774c7274241b0f64

Contents?: true

Size: 391 Bytes

Versions: 3

Compression:

Stored size: 391 Bytes

Contents

require 'pieces/rails/railtie'
require 'pieces/server'

module Pieces
  class Rails
    attr_reader :path, :force_polling

    def initialize(options = {})
      @path = path || Dir.pwd
      @force_polling = options[:force_polling]
    end

    def mount
      Pieces::Listener.new(path: path, force_polling: force_polling).listen
      Pieces::Server.new(path: path).app
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pieces-0.4.5 lib/pieces/rails.rb
pieces-0.4.4 lib/pieces/rails.rb
pieces-0.4.3 lib/pieces/rails.rb