Class: Preseason::Recipe::Bitters

Inherits:
Preseason::Recipe show all
Defined in:
lib/preseason/recipe/bitters.rb

Instance Attribute Summary

Attributes inherited from Preseason::Recipe

#config

Instance Method Summary collapse

Methods inherited from Preseason::Recipe

#initialize, #post_install_hook, #recipe_root

Methods included from Colorize

#ask, #readme, #yes?

Methods included from GeneratorContext

#method_missing

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_bittersObject



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

#prepareObject



2
3
4
# File 'lib/preseason/recipe/bitters.rb', line 2

def prepare
  install_bitters
end