module Onotole::Deploy

Public Instance Methods

configure_automatic_deployment() click to toggle source
# 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) click to toggle source
# 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() click to toggle source
# 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