namespace :db do

namespace :populate do

  desc "Create populate data with links"
  task :create => 'create:links'

  namespace :create do
    desc "Add links to populate data"
    task :links => :read_environment do
      SocialStream::Population::ActivityObject.new Link do |l|
        l.loaded = true
        l.title = Forgery::LoremIpsum.words(1+rand(4),:random => true)
        l.description = Forgery::LoremIpsum.sentences(1+rand(4), :random => true)

        l.url = "http://#{ Forgery::Internet.domain_name }"
      end
    end
  end
end

end