Class: Recipes::Mjml
- Inherits:
-
Rails::AppBuilder
- Object
- Rails::AppBuilder
- Recipes::Mjml
- Defined in:
- lib/potassium/recipes/mjml.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/potassium/recipes/mjml.rb', line 2 def create return if get(:email_service).to_s.downcase.to_sym == :none gather_gem 'mjml-rails' after(:gem_install) do run 'yarn add mjml' mjml_config end end |
#install ⇒ Object
16 17 18 |
# File 'lib/potassium/recipes/mjml.rb', line 16 def install create end |
#installed? ⇒ Boolean
12 13 14 |
# File 'lib/potassium/recipes/mjml.rb', line 12 def installed? gem_exists?(/mjml-rails/) end |