1
0
Fork 0
forked from OpenNeo/impress

update Rakefile and tasks to match new version of rake

This commit is contained in:
Emi Matchu 2013-01-02 23:40:37 -05:00
parent 9701221035
commit 202f1dc527
2 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@ require File.expand_path('../config/application', __FILE__)
require 'rake' require 'rake'
require 'rake/testtask' require 'rake/testtask'
require 'rake/rdoctask' require 'rdoc/task'
require 'resque/tasks' require 'resque/tasks'
require 'resque_scheduler/tasks' require 'resque_scheduler/tasks'

View file

@ -2,13 +2,13 @@ namespace :users do
namespace :image_mode do namespace :image_mode do
desc "Grants given username access to image mode" desc "Grants given username access to image mode"
task :add, :username, :needs => :environment do |t, args| task :add, [:username] => :environment do |t, args|
user = toggle_user_image_mode(args, true) user = toggle_user_image_mode(args, true)
puts "#{user.name} has gained access to image mode" puts "#{user.name} has gained access to image mode"
end end
desc "Removes given username's access to image mode" desc "Removes given username's access to image mode"
task :remove, :username, :needs => :environment do |t, args| task :remove, [:username] => :environment do |t, args|
user = toggle_user_image_mode(args, false) user = toggle_user_image_mode(args, false)
puts "#{user.name} has lost access to image mode" puts "#{user.name} has lost access to image mode"
end end