Skip to content
This repository
Browse code

Remove commands now covered by Parity gem

  • Loading branch information...
commit 5a785b94f97c534d500f8740fede091c5a86fa24 1 parent 949a3a3
Gabe Berke-Williams authored
24 bin/deployment_environment.rb
... ... @@ -1,24 +0,0 @@
1   -class DeploymentEnvironment
2   - def initialize(subcommands)
3   - @subcommands = subcommands
4   - @subcommand = @subcommands.first
5   - end
6   -
7   - def run
8   - case @subcommand
9   - when 'backup'
10   - system "heroku pgbackups:capture --expire --remote #{@environment}"
11   - when 'console'
12   - system "heroku run console --remote #{@environment}"
13   - when 'migrate'
14   - system %{
15   - heroku run rake db:migrate --remote #{@environment} &&
16   - heroku restart --remote #{@environment}
17   - }
18   - when 'tail'
19   - system "heroku logs --tail --remote #{@environment}"
20   - else
21   - system "heroku #{@subcommands.join(' ')} --remote #{@environment}"
22   - end
23   - end
24   -end
26 bin/production
... ... @@ -1,26 +0,0 @@
1   -#!/usr/bin/env ruby
2   -#
3   -# Interact with the production environment on Heroku.
4   -#
5   -# production backup
6   -# production console
7   -# production migrate
8   -# production tail
9   -#
10   -# The script also acts as a pass-through, so you can do anything with it that
11   -# you can do with `heroku ______ -r production`:
12   -#
13   -# production open
14   -# watch production ps
15   -
16   -require File.join(File.dirname(__FILE__), 'deployment_environment')
17   -
18   -class Production < DeploymentEnvironment
19   - def initialize(subcommands)
20   - @environment = 'production'
21   - super(subcommands)
22   - end
23   -end
24   -
25   -production = Production.new(ARGV)
26   -production.run
26 bin/staging
... ... @@ -1,26 +0,0 @@
1   -#!/usr/bin/env ruby
2   -#
3   -# Interact with the staging environment on Heroku.
4   -#
5   -# staging backup
6   -# staging console
7   -# staging migrate
8   -# staging tail
9   -#
10   -# The script also acts as a pass-through, so you can do anything with it that
11   -# you can do with `heroku ______ -r staging`:
12   -#
13   -# staging open
14   -# watch staging ps
15   -
16   -require File.join(File.dirname(__FILE__), 'deployment_environment')
17   -
18   -class Staging < DeploymentEnvironment
19   - def initialize(subcommands)
20   - @environment = 'staging'
21   - super(subcommands)
22   - end
23   -end
24   -
25   -staging = Staging.new(ARGV)
26   -staging.run

0 comments on commit 5a785b9

Please sign in to comment.
Something went wrong with that request. Please try again.