Sha256: 5e963ab2a40d132030e79f48defb5ffa2636a414128c6dfb174a05ccfbd5ac43
Contents?: true
Size: 1.51 KB
Versions: 2
Compression:
Stored size: 1.51 KB
Contents
desc "Configure Subversion for Rails" task :setup_svn do system "svn info" if $? != 0 puts 'Please Import your project to svn before executing this task' exit(0) end system "svn commit -m 'initial commit'" puts "Add .gitignore" system "echo '.svn' > .gitignore" system "svn add .gitignore" system "svn commit -m 'add .gitignore'" puts "Ignoring .git" system "svn propset svn:ignore '.git' ." puts "Removing /log" system "svn remove log/*" system "svn commit -m 'removing all log files from subversion'" system 'svn propset svn:ignore "*.log" log/' system "svn update log/" system "svn commit -m 'Ignoring all files in /log/ ending in .log'" puts "Ignoring /db" system 'svn propset svn:ignore "*.db" db/' system "svn update db/" system "svn commit -m 'Ignoring all files in /db/ ending in .db'" puts "Renaming database.yml database.example" system "svn move config/database.yml config/database.example" system "svn commit -m 'Moving database.yml to database.example to provide a template for anyone who checks out the code'" system 'svn propset svn:ignore "database.yml" config/' system "svn update config/" system "svn commit -m 'Ignoring database.yml'" puts "Ignoring /tmp" system 'svn propset svn:ignore "*" tmp/' system "svn update tmp/" system "svn commit -m 'Ignoring all files in /tmp/'" puts "Ignoring /doc" system 'svn propset svn:ignore "*" doc/' system "svn update doc/" system "svn commit -m 'Ignoring all files in /doc/'" end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
somatics3-0.0.10 | lib/generators/somatics/install/templates/lib/tasks/svn.rake |
somatics3-generators-0.0.10 | lib/generators/somatics/install/templates/lib/tasks/svn.rake |