lib/simple/httpd/cli.rb in simple-httpd-0.3.3 vs lib/simple/httpd/cli.rb in simple-httpd-0.3.4
- old
+ new
@@ -1,10 +1,7 @@
module Simple
class Httpd
- class << self
- attr_accessor :env
- end
end
end
module Simple::Httpd::CLI
include Simple::CLI
@@ -76,14 +73,14 @@
end
private
def prepare_environment!(environment:)
- ::Simple::Httpd.env = environment
start_simplecov if environment == "test"
# late loading simple/httpd, for simplecov support
require "simple/httpd"
+ ::Simple::Httpd.env = environment
end
def build_app!(mounts:, services:)
mounts << "." if mounts.empty?
logger.info "building server on #{mounts.inspect}"