class ReactOnRails::Dev::ProcessManager
def valid_procfile_path?(procfile)
def valid_procfile_path?(procfile) # Reject paths with shell metacharacters return false if procfile.match?(/[;&|`$(){}\[\]<>]/) # Ensure it's a readable file File.readable?(procfile) rescue StandardError false end