Sha256: 6acbf9a3b570e7cff9fd0feb7df51e1bf3d125ebdafc30c4a026514944122d28

Contents?: true

Size: 273 Bytes

Versions: 6

Compression:

Stored size: 273 Bytes

Contents

namespace :amalgam  do
	desc "dump the pages"

	task :dump => :environment do
    attributes = ENV['attributes'] ? ENV['attributes'].split(',') : []
		hash = Amalgam::Tree::Exportable.export(attributes)
		File.open('db/pages.yml', 'w') {|f| f.write(hash.to_yaml) }
	end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
amalgam-2.1.4.1 lib/tasks/dump.rake
amalgam-2.1.4 lib/tasks/dump.rake
amalgam-2.1.3.1 lib/tasks/dump.rake
amalgam-2.1.3 lib/tasks/dump.rake
amalgam-2.1.2 lib/tasks/dump.rake
amalgam-2.1.1 lib/tasks/dump.rake