Class: Bently::HerokuSendgrid

Inherits:
RailsRecipe show all
Defined in:
lib/bently/recipe/heroku-sendgrid.rb

Constant Summary

Constants inherited from RubyRecipe

RubyRecipe::GEMFILE

Instance Method Summary collapse

Methods inherited from RailsRecipe

#generate, #migrate

Methods inherited from RubyRecipe

#bundle, #gem, #gem_group

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

#initializeHerokuSendgrid

Returns a new instance of HerokuSendgrid.



7
8
9
10
11
# File 'lib/bently/recipe/heroku-sendgrid.rb', line 7

def initialize
  warn 'heroku commands may incur charges to your account'.upcase
  run 'heroku addons:add sendgrid:starter'
  create './config/initializers/mail.rb', template('mail.rb')
end