Sha256: a749c4604cb8724154912407907edc2f5ee3ff77df7b6bdf18a5bf3f97afa081

Contents?: true

Size: 599 Bytes

Versions: 11

Compression:

Stored size: 599 Bytes

Contents

require 'alchemy/seeder'
require 'alchemy/tasks/helpers'
include Alchemy::Tasks::Helpers

namespace :alchemy do
  namespace :db do

    desc "Seeds your database with essential data for Alchemy CMS."
    task :seed => :environment do
      Alchemy::Seeder.seed!
    end

    desc "Dumps the database to STDOUT (Pass DUMP_FILENAME to store the dump into a file)."
    task :dump => :environment do
      dump_store = ENV['DUMP_FILENAME'] ? " > #{ENV['DUMP_FILENAME']}" : ""
      dump_cmd = database_dump_command(database_config['adapter'])
      system "#{dump_cmd}#{dump_store}"
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
alchemy_cms-2.9.1 lib/tasks/alchemy/db.rake
alchemy_cms-3.0.4 lib/tasks/alchemy/db.rake
alchemy_cms-3.0.3 lib/tasks/alchemy/db.rake
alchemy_cms-3.0.2 lib/tasks/alchemy/db.rake
alchemy_cms-3.0.1 lib/tasks/alchemy/db.rake
alchemy_cms-3.0.0 lib/tasks/alchemy/db.rake
alchemy_cms-3.0.0.rc8 lib/tasks/alchemy/db.rake
alchemy_cms-2.9.0 lib/tasks/alchemy/db.rake
alchemy_cms-3.0.0.rc7 lib/tasks/alchemy/db.rake
alchemy_cms-3.0.0.rc6 lib/tasks/alchemy/db.rake
alchemy_cms-3.0.0.rc5 lib/tasks/alchemy/db.rake