Method: RailsBase::Features::Twilio.install

Defined in:
lib/rs-rails-base/features/twilio.rb

.installObject



8
9
10
11
12
13
14
15
# File 'lib/rs-rails-base/features/twilio.rb', line 8

def self.install
  templates_path = '../templates/twilio/'
  install_gem('twilio-ruby', '5.10.5')
  create_file('app/services/twilio_service.rb',
              "#{templates_path}twilio_service.rb")
  create_file('config/initializers/twilio.rb',
              "#{templates_path}twilio.rb")
end