Sha256: 5dc01a18d7cf45a85082cf637583959907f11d8aa0d22cd6ca601d7921530ba3

Contents?: true

Size: 215 Bytes

Versions: 9

Compression:

Stored size: 215 Bytes

Contents

module Pieces
  class Rails
    def mount(options = {})
      path = options[:path] || Dir.pwd
      Pieces::Listener.new(path: path).listen
      Pieces::Server.new(options.merge(path: path)).app
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pieces-0.4.0 lib/pieces/rails.rb
pieces-0.3.11 lib/pieces/rails.rb
pieces-0.3.10 lib/pieces/rails.rb
pieces-0.3.9 lib/pieces/rails.rb
pieces-0.3.8 lib/pieces/rails.rb
pieces-0.3.7 lib/pieces/rails.rb
pieces-0.3.6 lib/pieces/rails.rb
pieces-0.3.5 lib/pieces/rails.rb
pieces-0.3.3 lib/pieces/rails.rb