# desc "Explaining what the task does"
# task :rglossa do
#   # Task goes here
# end

namespace "rglossa" do
  namespace "install" do

    desc "Install thor scripts"
    task :thor do
      puts "Installing thor scripts..."

      filenames = "rglossa_*.thor"
      source = Dir["#{Rglossa::Engine.root}/lib/tasks/#{filenames}"]
      dest   = "#{Rails.root}/lib/tasks"
      old_files = Dir["#{dest}/#{filenames}"]

      FileUtils.rm(old_files)
      FileUtils.cp(source, dest)
    end

  end

end

Add rake task for copying thor scripts to host app
Add rake task for copying thor scripts to host app
