Class: Suspenders::Staging::PullRequestsGenerator
- Inherits:
-
Generators::Base
- Object
- Rails::Generators::Base
- Generators::Base
- Suspenders::Staging::PullRequestsGenerator
- Defined in:
- lib/suspenders/generators/staging/pull_requests_generator.rb
Instance Method Summary collapse
Methods inherited from Generators::Base
default_source_root, inherited
Methods included from ExitOnFailure
Methods included from Actions
#action_mailer_asset_host, #action_mailer_host, #configure_environment, #expand_json, #gem, #replace_in_file
Instance Method Details
#configure_heroku_staging_pr_pipeline_host ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/suspenders/generators/staging/pull_requests_generator.rb', line 6 def configure_heroku_staging_pr_pipeline_host inject_template_into_file( "config/environments/production.rb", "partials/pull_requests_config.rb", after: "Rails.application.configure do\n" ) end |
#create_review_apps_setup_script ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/suspenders/generators/staging/pull_requests_generator.rb', line 14 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 |