Sha256: b5d95c23fb1f6c003bc532cd70e0459bf535d691a95b779c5095c12d90b714c8

Contents?: true

Size: 521 Bytes

Versions: 12

Compression:

Stored size: 521 Bytes

Contents

require_relative 'all_jobs_shared'

class CsvFileTargetJob
  include AllJobsShared
  using Remi::Refinements::Daru

  define_target :some_csv_file, Remi::DataTarget::CsvFile,
    path: "#{Remi::Settings.work_dir}/some_file.csv",
    csv_options: {
      col_sep: '|'
    }

  define_transform :main do
    some_csv_file.df = Daru::DataFrame.new({
      col3: Faker::Hipster.words(10),
      col1: Faker::Hipster.words(10),
      col2: ["uh, \"oh"] + Faker::Hipster.words(9)
    }, order: [:col3, :col1, :col2])
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
remi-0.2.27 jobs/csv_file_target_job.rb
remi-0.2.26 jobs/csv_file_target_job.rb
remi-0.2.25 jobs/csv_file_target_job.rb
remi-0.2.24 jobs/csv_file_target_job.rb
remi-0.2.23 jobs/csv_file_target_job.rb
remi-0.2.22 jobs/csv_file_target_job.rb
remi-0.2.21 jobs/csv_file_target_job.rb
remi-0.2.20 jobs/csv_file_target_job.rb
remi-0.2.19 jobs/csv_file_target_job.rb
remi-0.2.18 jobs/csv_file_target_job.rb
remi-0.2.17 jobs/csv_file_target_job.rb
remi-0.2.16 jobs/csv_file_target_job.rb