Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require StateFile if needed. #1083

Merged
merged 1 commit into from Sep 8, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion lib/puma.rb
@@ -1,7 +1,6 @@
# Standard libraries
require 'socket'
require 'tempfile'
require 'yaml'
require 'time'
require 'etc'
require 'uri'
Expand Down
3 changes: 2 additions & 1 deletion lib/puma/launcher.rb
Expand Up @@ -7,7 +7,6 @@
require 'puma/const'

require 'puma/binder'
require 'puma/state_file'

module Puma
# Puma::Launcher is the single entry point for starting a Puma server based on user
Expand Down Expand Up @@ -105,6 +104,8 @@ def write_state
path = @options[:state]
return unless path

require 'puma/state_file'

sf = StateFile.new
sf.pid = Process.pid
sf.control_url = @options[:control_url]
Expand Down
1 change: 1 addition & 0 deletions test/test_cli.rb
Expand Up @@ -2,6 +2,7 @@
require 'test/unit'
require 'puma/cli'
require 'tempfile'
require 'yaml'

class TestCLI < Test::Unit::TestCase
def setup
Expand Down