lib/tasks/bower.rake in bower-rails-0.8.1 vs lib/tasks/bower.rake in bower-rails-0.8.2

- old
+ new

@@ -22,17 +22,21 @@ end desc "Install both dependencies and devDependencies from bower" task :development, :options do |_, args| args.with_defaults(:options => '') - perform{ |bower| sh "#{bower} install #{args[:options]}" } + BowerRails::Performer.perform do |bower| + sh "#{bower} install #{args[:options]}" + end end desc "Install only dependencies, excluding devDependencies from bower" task :production, :options do |_, args| args.with_defaults(:options => '') - perform{ |bower| sh "#{bower} install -p #{args[:options]}" } + BowerRails::Performer.perform do |bower| + sh "#{bower} install -p #{args[:options]}" + end end end desc "Update bower components" task :update, :options do |_, args| @@ -76,6 +80,6 @@ before 'assets:precompile' do BowerRails.tasks.map do |task| Rake::Task[task].invoke end -end \ No newline at end of file +end