Sha256: 711c91f93bcdfef97afa0df570525d8e2c22f08ecfe8ffed1bef322c124ce8a3

Contents?: true

Size: 580 Bytes

Versions: 20

Compression:

Stored size: 580 Bytes

Contents

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

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
social_stream-2.2.2 linkser/lib/tasks/db/populate.rake
social_stream-linkser-2.2.1 lib/tasks/db/populate.rake
social_stream-2.2.1 linkser/lib/tasks/db/populate.rake
social_stream-2.2.0 linkser/lib/tasks/db/populate.rake
social_stream-linkser-2.2.0 lib/tasks/db/populate.rake
social_stream-2.1.1 linkser/lib/tasks/db/populate.rake
social_stream-2.1.0 linkser/lib/tasks/db/populate.rake
social_stream-linkser-2.1.0 lib/tasks/db/populate.rake
social_stream-2.0.4 linkser/lib/tasks/db/populate.rake
social_stream-2.0.3 linkser/lib/tasks/db/populate.rake
social_stream-2.0.2 linkser/lib/tasks/db/populate.rake
social_stream-2.0.1 linkser/lib/tasks/db/populate.rake
social_stream-2.0.0 linkser/lib/tasks/db/populate.rake
social_stream-linkser-2.0.0 lib/tasks/db/populate.rake
social_stream-2.0.0.beta3 linkser/lib/tasks/db/populate.rake
social_stream-linkser-2.0.0.beta3 lib/tasks/db/populate.rake
social_stream-2.0.0.beta2 linkser/lib/tasks/db/populate.rake
social_stream-linkser-2.0.0.beta2 lib/tasks/db/populate.rake
social_stream-2.0.0.beta1 linkser/lib/tasks/db/populate.rake
social_stream-linkser-2.0.0.beta1 lib/tasks/db/populate.rake