require 'origin_detector'

namespace :bruce do 
  desc "Check many gems are created locally in Australia"

  task :check => :environment do |t|
    # Call the AussieDetector
    aussieDetector = OriginDetector::AussieDetector.new("#{Rails.root}/Gemfile")
    config = Bruce::Config.new
    result = aussieDetector.how_australian?
    config.save(result) # Save into config/bruce_output.yml
    puts result
  end
end

require 'origin_detector'

namespace :bruce do 
  desc "Check many gems are created locally in Australia"

  task :check => :environment do |t|
    # Call the AussieDetector
    aussieDetector = OriginDetector::AussieDetector.new("#{Rails.root}/Gemfile")
    config = Bruce::Config.new
    result = aussieDetector.how_australian?
    config.save(result) # Save into config/bruce_output.yml
    puts "\n\n#{result}% Proudly Australian\n\n"
  end
end

Change the output of rake
Change the output of rake
