Sha256: 25aee0727b53dc75ba0b1866feb87f36b70653e8dcba1eff03b69a1370bf21fe

Contents?: true

Size: 656 Bytes

Versions: 22

Compression:

Stored size: 656 Bytes

Contents

$:.unshift(File.expand_path(File.dirname(__FILE__) + '/../..'))

require 'locomotive/wagon/logger'
require 'locomotive/wagon/version'
require 'locomotive/wagon/exceptions'
require 'locomotive/wagon/server'
require 'locomotive/mounter'

module Locomotive
  module Wagon
    class StandaloneServer < Server

      def initialize(path)
        Locomotive::Wagon::Logger.setup(path, false)

        # get the reader
        reader = Locomotive::Mounter::Reader::FileSystem.instance
        reader.run!(path: path)
        reader

        Bundler.require 'misc'

        # run the rack app
        super(reader, disable_listen: true)
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
locomotivecms_wagon-1.5.8 lib/locomotive/wagon/standalone_server.rb
locomotivecms_wagon-1.5.7 lib/locomotive/wagon/standalone_server.rb
locomotivecms_wagon-1.5.6 lib/locomotive/wagon/standalone_server.rb
locomotivecms_wagon-1.5.5 lib/locomotive/wagon/standalone_server.rb
locomotivecms_wagon-1.5.4 lib/locomotive/wagon/standalone_server.rb
locomotivecms_wagon-1.5.3 lib/locomotive/wagon/standalone_server.rb
locomotivecms_wagon-1.5.2 lib/locomotive/wagon/standalone_server.rb
locomotivecms_wagon-1.5.1 lib/locomotive/wagon/standalone_server.rb
locomotivecms_wagon-1.5.0 lib/locomotive/wagon/standalone_server.rb
locomotivecms_wagon-1.5.0.rc1 lib/locomotive/wagon/standalone_server.rb
locomotivecms_wagon-1.4.0 lib/locomotive/wagon/standalone_server.rb
locomotivecms_wagon-1.3.3 lib/locomotive/wagon/standalone_server.rb
locomotivecms_wagon-1.3.2 lib/locomotive/wagon/standalone_server.rb
locomotivecms_wagon-1.3.1 lib/locomotive/wagon/standalone_server.rb
locomotivecms_wagon-1.3.0 lib/locomotive/wagon/standalone_server.rb
locomotivecms_wagon-1.2.2 lib/locomotive/wagon/standalone_server.rb
locomotivecms_wagon-1.2.1 lib/locomotive/wagon/standalone_server.rb
locomotivecms_wagon-1.2.0 lib/locomotive/wagon/standalone_server.rb
locomotivecms_wagon-1.1.0 lib/locomotive/wagon/standalone_server.rb
locomotivecms_wagon-1.0.2 lib/locomotive/wagon/standalone_server.rb