Module: Onotole::Deploy
- Included in:
- AppBuilder
- Defined in:
- lib/onotole/deploy.rb
Instance Method Summary collapse
- #configure_automatic_deployment ⇒ Object
- #create_heroku_apps(flags) ⇒ Object
- #provide_deploy_script ⇒ Object
Instance Method Details
#configure_automatic_deployment ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/onotole/deploy.rb', line 22 def configure_automatic_deployment deploy_command = " deployment:\n staging:\n branch: master\n commands:\n - bin/deploy staging\n YML\n\n append_file 'circle.yml', deploy_command\nend\n".strip_heredoc |
#create_heroku_apps(flags) ⇒ Object
34 35 36 37 |
# File 'lib/onotole/deploy.rb', line 34 def create_heroku_apps(flags) create_staging_heroku_app(flags) create_production_heroku_app(flags) end |
#provide_deploy_script ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/onotole/deploy.rb', line 4 def provide_deploy_script copy_file 'bin_deploy', 'bin/deploy' instructions = "\n## Deploying\n\nIf you have previously run the `./bin/setup` script,\nyou can deploy to staging and production with:\n\n$ ./bin/deploy staging\n$ ./bin/deploy production\n MARKDOWN\n\n append_file 'README.md', instructions\n run 'chmod a+x bin/deploy'\nend\n" |