Display a message at the end of a Rails template

I am using Rails 3.2.1 and created my own rail template. I want to display a set of instructions after the initial installation, but it seems the package is running and pushes my messages to the screen.

Is there a way to stop the package from starting after my template? Or, even better, is there a way to display a message after starting the package?

+4
source share
1 answer

It's a bit dirty to crack, but you can disable the built-in call to 'bundle install' by overriding the run_bundle method:

 def run_bundle ; end 

If you still want your template to run bundle install , you can invoke it with the run command:

 run "bundle install" 

Alternatively, just use this line in your template:

 run_bundle ; def run_bundle ; end 

NTN.

+2
source

All Articles