Class: ObjectDaddyGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ObjectDaddyGenerator
- Defined in:
- lib/generators/object_daddy_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_exemplars_dir ⇒ Object
3 4 5 6 7 |
# File 'lib/generators/object_daddy_generator.rb', line 3 def create_exemplars_dir testfw = File.exists?("#{destination_root}/test") ? "test" : "spec" empty_directory "#{testfw}/exemplars" create_file "#{testfw}/exemplars/.gitkeep", "git sucks" end |