Sha256: c4d9941ed486fe632eba34b5cee44257f7a3f3705debdc6e5027deede2ea90ea

Contents?: true

Size: 1.69 KB

Versions: 5

Compression:

Stored size: 1.69 KB

Contents

# encoding: utf-8

require 'flextures/flextures'

namespace :db do
  namespace :flextures do
    desc "Dump data to csv format"
    task :dump => :environment do
      Flextures::Rake::Command::dump
    end

    desc "Dump data to prefer csv format"
    task :csvdump => :environment do
      puts "This command is deprecated"
      # TODO: deprecated message
      # please use 'FOAMRT=csv' option
      ENV["FORMAT"]="csv"
      Flextures::Rake::Command::dump
    end

    desc "Dump data to yaml format"
    task :ymldump => :environment do
      puts "This command is deprecated"
      puts "please use 'rake db:flextures:dump FORMAT='yml''"
      # TODO: deprecated message
      # please use 'FOAMRT=yml' option
      ENV["FORMAT"]="yml"
      Flextures::Rake::Command::dump
    end

    desc "load fixture data csv format"
    task :load => :environment do
      Flextures::Rake::Command::load
    end

    desc "load fixture data only csv format files"
    task :csvload => :environment do
      puts "This command is deprecated"
      puts "please use 'rake db:flextures:load FORMAT='csv''"
      # TODO: deprecated message
      # please use 'FOAMRT=csv' option
      ENV["FORMAT"]="csv"
      Flextures::Rake::Command::load
    end

    desc "load fixture files only yaml format"
    task :ymlload => :environment do
      # TODO: deprecated message
      # please use 'FOAMRT=yml' option
      ENV["FORMAT"]="yml"
      puts "This command is deprecated"
      puts "please use 'rake db:flextures:load FORMAT='yml''"
      Flextures::Rake::Command::load
    end

    desc "load and dump file (replace) new data file"
    task :generate => :environment do
      Flextures::Rake::Command::generate
    end 
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
flextures-3.1.2 lib/flextures/flextures.rake
flextures-3.1.1 lib/flextures/flextures.rake
flextures-3.1.0 lib/flextures/flextures.rake
flextures-3.0.1 lib/flextures/flextures.rake
flextures-3.0.0 lib/flextures/flextures.rake