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-1.1.12 linkser/lib/tasks/db/populate_links.rake
social_stream-linkser-1.1.2 lib/tasks/db/populate_links.rake
social_stream-1.1.11 linkser/lib/tasks/db/populate_links.rake
social_stream-1.1.10 linkser/lib/tasks/db/populate_links.rake
social_stream-1.1.9 linkser/lib/tasks/db/populate_links.rake
social_stream-1.1.8 linkser/lib/tasks/db/populate_links.rake
social_stream-1.1.7 linkser/lib/tasks/db/populate_links.rake
social_stream-1.1.6 linkser/lib/tasks/db/populate_links.rake
social_stream-1.1.5 linkser/lib/tasks/db/populate_links.rake
social_stream-linkser-1.1.1 lib/tasks/db/populate_links.rake
social_stream-1.1.4 linkser/lib/tasks/db/populate_links.rake
social_stream-1.1.3 linkser/lib/tasks/db/populate_links.rake
social_stream-1.1.2 linkser/lib/tasks/db/populate_links.rake
social_stream-1.1.1 linkser/lib/tasks/db/populate_links.rake
social_stream-1.1.0 linkser/lib/tasks/db/populate_links.rake
social_stream-linkser-1.1.0 lib/tasks/db/populate_links.rake
social_stream-1.0.1 linkser/lib/tasks/db/populate_links.rake
social_stream-linkser-1.0.0 lib/tasks/db/populate_links.rake
social_stream-0.30.2 linkser/lib/tasks/db/populate_links.rake
social_stream-0.30.1 linkser/lib/tasks/db/populate_links.rake