Class: UnicornGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- UnicornGenerator
- Defined in:
- lib/generators/unicorn/unicorn_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_gems ⇒ Object
4 5 6 7 |
# File 'lib/generators/unicorn/unicorn_generator.rb', line 4 def add_gems gem 'unicorn', '~> 4.6.2' gem 'rack-timeout', '~> 0.0.4' end |
#copy_files ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/generators/unicorn/unicorn_generator.rb', line 9 def copy_files copy_file 'config/unicorn.rb', 'config/unicorn.rb' copy_file 'config/initializers/timeout.rb', 'config/initializers/timeout.rb' copy_file 'Procfile', 'Procfile' # TODO: add lines to .env instead of copying the role file copy_file 'environment', '.env' end |