Sha256: 235d6549440ebc1e44743b89d056865f60026c476643bd8afedfa9fbae132a7a

Contents?: true

Size: 475 Bytes

Versions: 18

Compression:

Stored size: 475 Bytes

Contents

desc 'Base engine tasks'
namespace :flexite do
  task convert_yml: :environment do
    puts 'Converting....'
    result = Flexite::Data::NewService.new(Flexite::Data::Migrators::Yaml.new).call
    puts 'Finished'
    puts 'Errors:'

    result[:errors].each do |object, errors|
      puts "record: #{object.inspect}"

      errors.each do |error|
        puts "message: #{error.first}"
        puts "backtrace: #{error.last}"
      end

      puts '-' * 70
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
flexite-0.0.25 lib/tasks/flexite_tasks.rake
flexite-0.0.24 lib/tasks/flexite_tasks.rake
flexite-0.0.23 lib/tasks/flexite_tasks.rake
flexite-0.0.22 lib/tasks/flexite_tasks.rake
flexite-0.0.21 lib/tasks/flexite_tasks.rake
flexite-0.0.20 lib/tasks/flexite_tasks.rake
flexite-0.0.19 lib/tasks/flexite_tasks.rake
flexite-0.0.18 lib/tasks/flexite_tasks.rake
flexite-0.0.17 lib/tasks/flexite_tasks.rake
flexite-0.0.16 lib/tasks/flexite_tasks.rake
flexite-0.0.15 lib/tasks/flexite_tasks.rake
flexite-0.0.14 lib/tasks/flexite_tasks.rake
flexite-0.0.13 lib/tasks/flexite_tasks.rake
flexite-0.0.12 lib/tasks/flexite_tasks.rake
flexite-0.0.11 lib/tasks/flexite_tasks.rake
flexite-0.0.10 lib/tasks/flexite_tasks.rake
flexite-0.0.9 lib/tasks/flexite_tasks.rake
flexite-0.0.8 lib/tasks/flexite_tasks.rake