remove standalone server from wagon

arnaud sellenet committed Apr 01, 2014
commit eedbdabdcd76ac776f3234f4dc95a2682f276290
Showing 7 changed files with 12 additions and 40 deletions
generators/blank/config.ru +2 -2
@@ @@ -1,3 +1,3 @@
- require 'locomotive/wagon/standalone_server'
+ require 'locomotive/steam/standalone_server'
- run Locomotive::Wagon::StandaloneServer.new(File.expand_path('.'))
\ No newline at end of file
+ run Locomotive::Steam::StandaloneServer.new(File.expand_path('.'))
\ No newline at end of file
generators/bootstrap2/config.ru +2 -2
@@ @@ -1,3 +1,3 @@
- require 'locomotive/wagon/standalone_server'
+ require 'locomotive/steam/standalone_server'
- run Locomotive::Wagon::StandaloneServer.new(File.expand_path('.'))
\ No newline at end of file
+ run Locomotive::Steam::StandaloneServer.new(File.expand_path('.'))
\ No newline at end of file
generators/bootstrap3/config.ru +2 -2
@@ @@ -1,3 +1,3 @@
- require 'locomotive/wagon/standalone_server'
+ require 'locomotive/steam/standalone_server'
- run Locomotive::Wagon::StandaloneServer.new(File.expand_path('.'))
\ No newline at end of file
+ run Locomotive::Steam::StandaloneServer.new(File.expand_path('.'))
\ No newline at end of file
generators/cloned/config.ru +2 -2
@@ @@ -1,3 +1,3 @@
- require 'locomotive/wagon/standalone_server'
+ require 'locomotive/steam/standalone_server'
- run Locomotive::Wagon::StandaloneServer.new(File.expand_path('.'))
\ No newline at end of file
+ run Locomotive::Steam::StandaloneServer.new(File.expand_path('.'))
\ No newline at end of file
generators/foundation4/config.ru +2 -2
@@ @@ -1,3 +1,3 @@
- require 'locomotive/wagon/standalone_server'
+ require 'locomotive/steam/standalone_server'
- run Locomotive::Wagon::StandaloneServer.new(File.expand_path('.'))
\ No newline at end of file
+ run Locomotive::Steam::StandaloneServer.new(File.expand_path('.'))
\ No newline at end of file
generators/foundation5/config.ru +2 -2
@@ @@ -1,3 +1,3 @@
- require 'locomotive/wagon/standalone_server'
+ require 'locomotive/steam/standalone_server'
- run Locomotive::Wagon::StandaloneServer.new(File.expand_path('.'))
\ No newline at end of file
+ run Locomotive::Steam::StandaloneServer.new(File.expand_path('.'))
\ No newline at end of file
locomotive/wagon/standalone_server.rb b/lib/locomotive/wagon/standalone_server.rb +0 -28
@@ @@ -1,28 +0,0 @@
- $:.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
\ No newline at end of file