Class: ObjectDaddyGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/object_daddy_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_exemplars_dirObject



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