Skip to content

Commit

Permalink
Merge pull request #2283 from ylecuyer/state-file-running-from-yle
Browse files Browse the repository at this point in the history
Minor: Add running_from to state_file
  • Loading branch information
nateberkopec committed May 26, 2020
2 parents 6b5a837 + f71018f commit 22002ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/puma/launcher.rb
Expand Up @@ -111,6 +111,7 @@ def write_state
sf.pid = Process.pid
sf.control_url = @options[:control_url]
sf.control_auth_token = @options[:control_auth_token]
sf.running_from = File.expand_path('.')

sf.save path, permission
end
Expand Down
2 changes: 1 addition & 1 deletion lib/puma/state_file.rb
Expand Up @@ -19,7 +19,7 @@ def load(path)
@options = YAML.load File.read(path)
end

FIELDS = %w!control_url control_auth_token pid!
FIELDS = %w!control_url control_auth_token pid running_from!

FIELDS.each do |f|
define_method f do
Expand Down

0 comments on commit 22002ac

Please sign in to comment.