lib/navy/rank.rb in navy-0.0.3 vs lib/navy/rank.rb in navy-1.0.0

- old
+ new

@@ -1,15 +1,19 @@ class Navy::Rank + attr_accessor :orders + attr_accessor :before_fork, :after_fork, :before_exec attr_accessor :reexec_pid - attr_reader :pid def logger - Navy.logger + @logger ||= orders[:logger] end + attr_writer :logger + attr_reader :options + # sets the path for the PID file of the master process def pid=(path) if path if x = valid_pid?(path) return path if pid && path == pid && x == $$ @@ -35,9 +39,17 @@ File.rename(fp.path, path) fp.close end @pid = path end + attr_reader :pid + + attr_accessor :preload + + def stdout_path=(path); redirect_io($stdout, path); end + def stderr_path=(path); redirect_io($stderr, path); end + + attr_accessor :timeout private # unlinks a PID file at given +path+ if it contains the current PID # still potentially racy without locking the directory (which is \ No newline at end of file