Adding django-admin/rake command to set the staff bit

This commit is contained in:
John Jarvis
2012-10-10 09:46:30 -04:00
parent 57e4f0dd6b
commit bd45dbd8d4
2 changed files with 43 additions and 0 deletions

View File

@@ -171,6 +171,12 @@ task "django-admin", [:action, :system, :env, :options] => [:predjango] do |t, a
sh(django_admin(args.system, args.env, args.action, args.options))
end
desc "Set the staff bit for a user"
task :set_staff, [:user, :system, :env] do |t, args|
args.with_defaults(:env => 'dev', :system => 'lms', :options => '')
sh(django_admin(args.system, args.env, 'set_staff', args.user))
end
task :package do
FileUtils.mkdir_p(BUILD_DIR)