locomotivecms_builder 1.0.0.alpha3 → 1.0.0.alpha4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,31 +1,26 @@
1
- require "locomotive/builder/server"
2
1
  $:.unshift(File.expand_path(File.dirname(__FILE__) + '/../..'))
3
2
 
3
+ require 'locomotive/builder/logger'
4
4
  require 'locomotive/builder/version'
5
5
  require 'locomotive/builder/exceptions'
6
+ require 'locomotive/builder/server'
6
7
  require 'locomotive/mounter'
7
8
 
8
9
  module Locomotive
9
10
  module Builder
10
11
  class StandaloneServer < Server
11
-
12
- def initialize(path)
13
- # setting the logger
14
- logfile = File.join(path, 'log', 'mounter.log')
15
- FileUtils.mkdir_p(File.dirname(logfile))
16
12
 
17
- Locomotive::Mounter.logger = ::Logger.new(logfile).tap do |log|
18
- log.level = Logger::DEBUG
19
- end
13
+ def initialize(path)
14
+ Locomotive::Builder::Logger.setup(path, false)
20
15
 
21
16
  # get the reader
22
17
  reader = Locomotive::Mounter::Reader::FileSystem.instance
23
18
  reader.run!(path: path)
24
19
  reader
25
20
 
26
- # run the rack app
27
21
  Bundler.require 'misc'
28
-
22
+
23
+ # run the rack app
29
24
  super(reader, disable_listen: true)
30
25
  end
31
26
  end
@@ -1,5 +1,5 @@
1
1
  module Locomotive
2
2
  module Builder
3
- VERSION = '1.0.0.alpha3'
3
+ VERSION = '1.0.0.alpha4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: locomotivecms_builder
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 6
5
- version: 1.0.0.alpha3
5
+ version: 1.0.0.alpha4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Didier Lafforgue
@@ -444,7 +444,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
444
444
  - !ruby/object:Gem::Version
445
445
  segments:
446
446
  - 0
447
- hash: -1360444636888489867
447
+ hash: 3961612312460768796
448
448
  version: '0'
449
449
  required_rubygems_version: !ruby/object:Gem::Requirement
450
450
  none: false