class Titanic::InstallGenerator
Public Instance Methods
install()
click to toggle source
# File lib/generators/titanic/install_generator.rb, line 4 def install # Load rake tasks into project content = 'spec = Gem::Specification.find_by_name "titanic-db"' + "\n" + 'load "#{spec.gem_dir}/lib/tasks/titanic.rake"' append_to_file 'Rakefile', content end