gemfile = "#{@project_path}/Gemfile" gsub_file gemfile, "gem 'sqlite3'", "gem 'mysql2'" insert_into_file gemfile, after: "group :development, :test do\n" do < 1.0' EOF end