summaryrefslogtreecommitdiff
path: root/lib/tasks/development_init.rake
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks/development_init.rake')
-rw-r--r--lib/tasks/development_init.rake18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/tasks/development_init.rake b/lib/tasks/development_init.rake
new file mode 100644
index 0000000..7c732d2
--- /dev/null
+++ b/lib/tasks/development_init.rake
@@ -0,0 +1,18 @@
1namespace :cccms do
2
3 desc "Create admin:foobar user:password"
4 task :create_admin_user => :environment do |t|
5 User.create!(
6 :login => 'admin',
7 :email => 'admin@cccms.de',
8 :password => 'foobar',
9 :password_confirmation => 'foobar'
10 )
11 end
12
13 desc "Import the old XML Files"
14 task :import_updates => :environment do |t|
15 i = UpdateImporter.new("#{RAILS_ROOT}/db/updates")
16 i.import_xml
17 end
18end \ No newline at end of file