lib/heroku/command/fork.rb
# fork [NEWNAME]
#
# 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 for the new app
# --region REGION      # specify a region
#
fork [NEWNAME]
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 for the new app
region REGION      # specify a region
fork [ NEWNAME ] 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 for the new app region REGION # specify a region
def check_for_pgbackups!(app)
      unless api.get_addons(app).body.detect { |addon| addon["name"] =~ /^pgbackups:/ }
        action("Adding pgbackups:plus to #{app}") do
          api.post_addon app, "pgbackups:plus"
        end
      end
    end
def check_for_pgbackups! ( app ) unless api . get_addons ( app ) . body . detect { | addon | addon [ "name" ] =~ / ^pgbackups: / } action ( "Adding pgbackups:plus to #{app}" ) do api . post_addon app , "pgbackups:plus" end end end
fork [NEWNAME]
Fork an existing app -- copy config vars and Heroku Postgres data, and re-provision add-ons to a new app.
fork [ NEWNAME ] Fork an existing app -- copy config vars and Heroku Postgres data and re - provision add - ons to a new app .
app
<not_specific>