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 = <<-YML.strip_heredoc deployment: staging: branch: master commands: - bin/deploy staging YML append_file 'circle.yml', deploy_command end |
#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 = <<-MARKDOWN ## Deploying If you have previously run the `./bin/setup` script, you can deploy to staging and production with: $ ./bin/deploy staging $ ./bin/deploy production MARKDOWN append_file 'README.md', instructions run 'chmod a+x bin/deploy' end |