# File src/ruby_supportlib/phusion_passenger/admin_tools/instance.rb, line 39 def initialize(path) @path = path # Possible states: # # * :good - Everything is good. But the Watchdog process that created # it might have died. In that case, the directory should be cleaned up. # Use `locked?` to check. # # * :not_finalized - The instance directory hasn't been finalized yet, # so we can't read any information from it. It is possible that the # process that has created it has died, i.e. that it will never # become finalized. In that case, the directory should be cleaned up. # Use `stale?` to check. # # * :structure_version_unsupported - The properties file advertised a # structure version that we don't support. We can't read any # information from it. # # * :corrupted - The instance directory is corrupted in some way. @state = nil reload_properties end