Class: Preseason::Recipe::Database
- Inherits:
-
Preseason::Recipe
- Object
- Preseason::Recipe
- Preseason::Recipe::Database
- Defined in:
- lib/preseason/recipe/database.rb
Instance Attribute Summary
Attributes inherited from Preseason::Recipe
Instance Method Summary collapse
Methods inherited from Preseason::Recipe
#initialize, #post_install_hook
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
#prepare ⇒ Object
7 8 9 10 |
# File 'lib/preseason/recipe/database.rb', line 7 def prepare config.database.sqlite? ? prepare_sqlite : prepare_default append_to_file '.gitignore', "\n#{db_yml}" end |
#recipe_root ⇒ Object
2 3 4 5 |
# File 'lib/preseason/recipe/database.rb', line 2 def recipe_root # this is only used in the sqlite context "#{template_path}/sqlite" end |