Class: RailsBase::Features::Twilio
- Inherits:
-
Object
- Object
- RailsBase::Features::Twilio
- Extended by:
- CliActions, RailsBase::FileManipulation
- Defined in:
- lib/rs-rails-base/features/twilio.rb
Class Method Summary collapse
Methods included from RailsBase::FileManipulation
append_to_file, create_file, inject_into_file, install_gem, read_all_content, replace_in_file
Methods included from CliActions
ask_for_something, say_something
Class Method Details
.install ⇒ Object
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 |