Sha256: c0dbdda29aa2a333e66e05342ab3fb2b4b6eb5f81a7ebc026c36ccc9dbce0c50

Contents?: true

Size: 839 Bytes

Versions: 40

Compression:

Stored size: 839 Bytes

Contents

# frozen_string_literal: true
module Onotole
  module Deploy
    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

    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

    def create_heroku_apps(flags)
      create_staging_heroku_app(flags)
      create_production_heroku_app(flags)
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
onotole-2.0.2 lib/onotole/deploy.rb
onotole-2.0.1 lib/onotole/deploy.rb
onotole-2.0.0 lib/onotole/deploy.rb
onotole-1.2.11 lib/onotole/deploy.rb
onotole-1.2.10 lib/onotole/deploy.rb
onotole-1.2.9 lib/onotole/deploy.rb
onotole-1.2.8 lib/onotole/deploy.rb
onotole-1.2.7 lib/onotole/deploy.rb
onotole-1.2.6 lib/onotole/deploy.rb
onotole-1.2.5 lib/onotole/deploy.rb
onotole-1.2.4 lib/onotole/deploy.rb
onotole-1.2.3 lib/onotole/deploy.rb
onotole-1.2.2 lib/onotole/deploy.rb
onotole-1.2.1 lib/onotole/deploy.rb
onotole-1.1.21 lib/onotole/deploy.rb
onotole-1.1.20 lib/onotole/deploy.rb
onotole-1.1.19 lib/onotole/deploy.rb
onotole-1.1.18 lib/onotole/deploy.rb
onotole-1.1.17 lib/onotole/deploy.rb
onotole-1.1.16 lib/onotole/deploy.rb