diff --git a/lib/god/conditions/file_touched.rb b/lib/god/conditions/file_touched.rb index 99cb609e..48186c5a 100644 --- a/lib/god/conditions/file_touched.rb +++ b/lib/god/conditions/file_touched.rb @@ -33,7 +33,7 @@ def valid? end def test - if File.exists?(self.path) + if File.exist?(self.path) (Time.now - File.mtime(self.path)) <= self.interval else false diff --git a/lib/god/socket.rb b/lib/god/socket.rb index 1eeeb42d..191bd484 100644 --- a/lib/god/socket.rb +++ b/lib/god/socket.rb @@ -93,7 +93,7 @@ def start end end - if File.exists?(self.socket_file) + if File.exist?(self.socket_file) if @user user_method = @user.is_a?(Integer) ? :getpwuid : :getpwnam uid = Etc.send(user_method, @user).uid diff --git a/lib/god/system/slash_proc_poller.rb b/lib/god/system/slash_proc_poller.rb index 59693cf9..60b7a5ba 100644 --- a/lib/god/system/slash_proc_poller.rb +++ b/lib/god/system/slash_proc_poller.rb @@ -1,3 +1,4 @@ +require 'timeout' module God module System class SlashProcPoller < PortablePoller