Class: Preseason::Recipe::Bitters
- Inherits:
-
Preseason::Recipe
- Object
- Preseason::Recipe
- Preseason::Recipe::Bitters
- Defined in:
- lib/preseason/recipe/bitters.rb
Instance Attribute Summary
Attributes inherited from Preseason::Recipe
Instance Method Summary collapse
Methods inherited from Preseason::Recipe
#initialize, #post_install_hook, #recipe_root
Methods included from Colorize
Methods included from GeneratorContext
Constructor Details
This class inherits a constructor from Preseason::Recipe
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Preseason::GeneratorContext
Instance Method Details
#install_bitters ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/preseason/recipe/bitters.rb', line 6 def install_bitters inside 'app/assets/stylesheets' do run 'bundle exec bitters install' end insert_into_file 'app/assets/stylesheets/application.scss', after: "@import 'neat';\n" do "@import 'base/base';\n" end end |
#prepare ⇒ Object
2 3 4 |
# File 'lib/preseason/recipe/bitters.rb', line 2 def prepare install_bitters end |