Class: ToTown::Generators::Mongodb

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/to_town/generators/mongodb.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



13
14
15
# File 'lib/to_town/generators/mongodb.rb', line 13

def self.source_root
  File.dirname(__FILE__) + "/templates"
end

Instance Method Details

#genenrateObject



9
10
11
# File 'lib/to_town/generators/mongodb.rb', line 9

def genenrate
  template("mongoid_example.yml", "mongoid.yml")
end