Sha256: a05ce9199f55e6680ea9e6f8d4a3da53782a6992d2660769cbcf751cdf7a5fbb

Contents?: true

Size: 514 Bytes

Versions: 36

Compression:

Stored size: 514 Bytes

Contents

namespace :db do
  namespace :populate do

    desc "Create populate data with documents"
    task :create => :create_links

    desc "Add links to populate data"
    task :create_links => :read_environment do
      SocialStream::Population::ActivityObject.new Link do |l|
        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

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
social_stream-0.30.0 linkser/lib/tasks/db/populate_links.rake
social_stream-linkser-0.15.0 lib/tasks/db/populate_links.rake
social_stream-0.29.0 linkser/lib/tasks/db/populate_links.rake
social_stream-linkser-0.14.0 lib/tasks/db/populate_links.rake
social_stream-0.28.4 linkser/lib/tasks/db/populate_links.rake
social_stream-0.28.1 linkser/lib/tasks/db/populate_links.rake
social_stream-0.28.0 linkser/lib/tasks/db/populate_links.rake
social_stream-linkser-0.13.0 lib/tasks/db/populate_links.rake
social_stream-0.27.3 linkser/lib/tasks/db/populate_links.rake
social_stream-0.27.2 linkser/lib/tasks/db/populate_links.rake
social_stream-0.27.1 linkser/lib/tasks/db/populate_links.rake
social_stream-0.27.0 linkser/lib/tasks/db/populate_links.rake
social_stream-linkser-0.12.0 lib/tasks/db/populate_links.rake
social_stream-0.26.2 linkser/lib/tasks/db/populate_links.rake
social_stream-0.26.1 linkser/lib/tasks/db/populate_links.rake
social_stream-linkser-0.11.1 lib/tasks/db/populate_links.rake