27 lines
546 B
Text
27 lines
546 B
Text
|
#!/usr/bin/env ruby
|
||
|
#
|
||
|
# Interact with the staging environment on Heroku.
|
||
|
#
|
||
|
# staging backup
|
||
|
# staging console
|
||
|
# staging migrate
|
||
|
# staging tail
|
||
|
#
|
||
|
# The script also acts as a pass-through, so you can do anything with it that
|
||
|
# you can do with `heroku ______ -r staging`:
|
||
|
#
|
||
|
# staging open
|
||
|
# watch staging ps
|
||
|
|
||
|
require File.join(File.dirname(__FILE__), 'deployment_environment')
|
||
|
|
||
|
class Staging < DeploymentEnvironment
|
||
|
def initialize(subcommands)
|
||
|
@environment = 'staging'
|
||
|
super(subcommands)
|
||
|
end
|
||
|
end
|
||
|
|
||
|
staging = Staging.new(ARGV)
|
||
|
staging.run
|