Class: Pah::Templates::Heroku
- Inherits:
-
Pah::Template
- Object
- Rails::Generators::Base
- Pah::Template
- Pah::Templates::Heroku
- Defined in:
- lib/pah/templates/heroku.rb
Instance Method Summary collapse
Methods inherited from Pah::Template
#ask_unless_test, #copy_static_file, #git_commit, #static_files, #will_you_like_to?
Instance Method Details
#call ⇒ Object
94 95 96 97 98 99 100 101 102 103 |
# File 'lib/pah/templates/heroku.rb', line 94 def call copy_static_file 'Procfile' git add: 'Procfile' git_commit 'Add Procfile' if Pah.configuration.heroku[:create?] production_app = HerokuApp.new(Pah.configuration) production_app.open if Pah.configuration.heroku[:deploy?] end end |