Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Enable regions
Browse files Browse the repository at this point in the history
  • Loading branch information
rwdaigle committed Apr 23, 2013
1 parent 2b0a4b4 commit e996963
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
@@ -1,3 +1,7 @@
2.39.0 2013-04-24
=================
enable region support

2.38.2 2013-04-23
=================
disable use of sslv2 to rendezvous by forcing tlsv1
Expand Down
5 changes: 4 additions & 1 deletion lib/heroku/command/apps.rb
Expand Up @@ -183,7 +183,7 @@ def info
# -n, --no-remote # don't create a git remote
# -r, --remote REMOTE # the git remote to create, default "heroku"
# -s, --stack STACK # the stack on which to create the app
# --region REGION # HIDDEN: specify region for this app to run on
# --region REGION # specify region for this app to run in
# -t, --tier TIER # HIDDEN: the tier for this app
#
#Examples:
Expand All @@ -204,6 +204,9 @@ def info
# # create a staging app
# $ heroku apps:create example-staging --remote staging
#
# # create an app in the eu region
# $ heroku apps:create --region eu
#
def create
name = shift_argument || options[:app] || ENV['HEROKU_APP']
validate_arguments!
Expand Down
4 changes: 2 additions & 2 deletions lib/heroku/command/fork.rb
Expand Up @@ -12,8 +12,8 @@ class Fork < Base
# Fork an existing app -- copy config vars and Heroku Postgres data, and re-provision add-ons to a new app.
# New app name should not be an existing app. The new app will be created as part of the forking process.
#
# -s, --stack STACK # specify a stack
# --region REGION # HIDDEN: specify a region
# -s, --stack STACK # specify a stack for the new app
# --region REGION # specify a region
#
def index

Expand Down
5 changes: 3 additions & 2 deletions lib/heroku/command/regions.rb
@@ -1,18 +1,19 @@
require "heroku/command/base"

# HIDDEN: get info on available regions
# list available regions
#
class Heroku::Command::Regions < Heroku::Command::Base

# regions
#
# HIDDEN: List available regions for deployment
# List available regions for deployment
#
#Example:
#
# $ heroku regions
# === Regions
# us
# eu
def index
regions = json_decode(heroku.get("/regions"))
styled_header("Regions")
Expand Down

0 comments on commit e996963

Please sign in to comment.