recipes/heroku.rb in rails_apps_composer-1.0.26 vs recipes/heroku.rb in rails_apps_composer-1.1.0
- old
+ new
@@ -1,10 +1,14 @@
heroku_name = app_name.gsub('_','')
+gem 'heroku', group: :development
+
after_everything do
if config['create']
- say_wizard "Creating Heroku app '#{heroku_name}.heroku.com'"
+ say_wizard "Creating Heroku app '#{heroku_name}.heroku.com'"
+ # system "heroku apps:destroy --app #{heroku_name} --confirm #{heroku_name}"
+
while !system("heroku create #{heroku_name}")
heroku_name = ask_wizard("What do you want to call your app? ")
end
end
@@ -52,7 +56,7 @@
prompt: "Specify custom domain (or leave blank):"
type: string
if: create
- deploy:
prompt: "Deploy immediately?"
- type: boolean
+ type: boolean
if: create