Project

General

Profile

« Previous | Next » 

Revision e4fde4e3

Added by Ivan Necas about 10 years ago

Fixes #4976 - ensure the process is really running inside a rake task

View differences:

lib/foreman.rb
def self.is_uuid?(str)
!!(str =~ UUID_REGEXP)
end
def self.in_rake?(rake_task = nil)
defined?(Rake) && Rake.application.top_level_tasks.any? do |running_rake_task|
rake_task.nil? || running_rake_task == rake_task
end
end
end

Also available in: Unified diff