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