Change task.invoke to Rake::Task.invoke

Using `task()` reopens the definition of the task, and all we really
need to do is get a reference to the task itself to invoke it.
This commit is contained in:
Nate Hardison
2013-06-03 10:00:50 -07:00
parent 1fd1f63075
commit 03a9765b79
3 changed files with 4 additions and 4 deletions

View File

@@ -147,7 +147,7 @@ end
# env arguments to be passed to all dependent tasks.
desc "Compile coffeescript and sass, and then run collectstatic in the specified environment"
task "#{system}:gather_assets:#{env}" do
task(:gather_assets).invoke(system, env)
Rake::Task[:gather_assets].invoke(system, env)
end
end
end