Class: Puma::StateFile
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/puma/state_file.rb |
Constant Summary
-
FIELDS =
# File 'lib/puma/state_file.rb', line 19%w!control_url control_auth_token pid!
Class Method Summary
- .new ⇒ StateFile constructor
Instance Method Summary
Constructor Details
.new ⇒ StateFile
# File 'lib/puma/state_file.rb', line 7
def initialize @options = {} end
Instance Method Details
#load(path)
[ GitHub ]# File 'lib/puma/state_file.rb', line 15
def load(path) @options = YAML.load File.read(path) end
#save(path)
[ GitHub ]# File 'lib/puma/state_file.rb', line 11
def save(path) File.write path, YAML.dump(@options) end