I tried various solution on the internet like below Example-
sed -i -e "/^gitlab_rails['omniauth_enabled']=/s|.*|gitlab_rails['omniauth_enabled']=true|" testFile.rb
but nothing seems to work.
Sample File: cat testFile.rb
Hello it is me
a = true
gitlab_rails['omniauth_enabled']=false