Sha256: 8fdf21dc4751660384cd5fcf8906ad805de6b86e1b9e45376193dc268719ab6a
Contents?: true
Size: 816 Bytes
Versions: 4
Compression:
Stored size: 816 Bytes
Contents
require_relative "../base" module Suspenders module Staging class PullRequestsGenerator < Generators::Base def configure_heroku_staging_pr_pipeline_host config = <<-RUBY if ENV.fetch('HEROKU_APP_NAME', '').include?('staging-pr-') ENV['APPLICATION_HOST'] = ENV['HEROKU_APP_NAME'] + '.herokuapp.com' ENV['ASSET_HOST'] = ENV['HEROKU_APP_NAME'] + '.herokuapp.com' end RUBY inject_into_file( "config/environments/production.rb", config, after: "Rails.application.configure do\n", ) end def create_review_apps_setup_script template( "bin_setup_review_app.erb", "bin/setup_review_app", force: true, ) run "chmod a+x bin/setup_review_app" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems