Class: Bently::HerokuRails
- Inherits:
-
RailsRecipe
- Object
- Recipe
- RubyRecipe
- RailsRecipe
- Bently::HerokuRails
- Defined in:
- lib/bently/recipe/heroku-rails.rb
Constant Summary
Constants inherited from RubyRecipe
Instance Method Summary collapse
-
#initialize ⇒ HerokuRails
constructor
A new instance of HerokuRails.
Methods inherited from RailsRecipe
Methods inherited from RubyRecipe
Methods inherited from Recipe
#append, breakdown, category, #code, #create, description, homepage, #insert, #modify, #operate, #operations, #prepend, #remove, #requirement, #run, #say, title, #todo, #usage, version, #warn
Constructor Details
#initialize ⇒ HerokuRails
Returns a new instance of HerokuRails.
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/bently/recipe/heroku-rails.rb', line 7 def initialize warn 'heroku commands may incur charges to your account'.upcase modify 'Gemfile', /gem 'sqlite3'/, "" gem 'pg' bundle run 'git add Gemfile Gemfile.lock' run 'git commit -m "postgres gem"' run 'heroku create' run 'git push heroku master' run 'heroku run rake db:migrate' end |