Class: ToTown::Generators::Mongodb
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- ToTown::Generators::Mongodb
- Includes:
- Thor::Actions
- Defined in:
- lib/to_town/generators/mongodb.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
13 14 15 |
# File 'lib/to_town/generators/mongodb.rb', line 13 def self.source_root File.dirname(__FILE__) + "/templates" end |
Instance Method Details
#genenrate ⇒ Object
9 10 11 |
# File 'lib/to_town/generators/mongodb.rb', line 9 def genenrate template("mongoid_example.yml", "mongoid.yml") end |