+
+ line.gsub!(/^( *)require_terms_seen:.*$/, "\\1require_terms_seen: true")
+ line.gsub!(/^( *)require_terms_agreed:.*$/, "\\1require_terms_agreed: true")
+
+ line
+ end
+
+ file "#{rails_directory}/config/application.yml" do
+ owner rails_user
+ group rails_group
+ mode 0664
+ content application_yml
+ notifies :run, "execute[#{rails_directory}]"