Sha256: 0fe4ab6eebc751f3325dd44d6cd5fcc7f727329d0e50cad1d14a0e6cacbc9efe

Contents?: true

Size: 617 Bytes

Versions: 16

Compression:

Stored size: 617 Bytes

Contents

module AlephExecutables
  class Seeder
    PLAYGROUND_DATA_PATH        = 'playground_data'.freeze
    PLAYGROUND_DB_SEED_FILE     = 'aleph.playground.sqlite3'.freeze
    PLAYGROUND_SEED_RESULT_FILE = '1.csv'.freeze
    LOCAL_RESULT_CSV            = 'public/local_result_csvs'

    def self.execute!
      FileUtils.cp(File.join(PLAYGROUND_DATA_PATH, PLAYGROUND_DB_SEED_FILE), File.join('db', PLAYGROUND_DB_SEED_FILE))
      FileUtils.mkdir_p(LOCAL_RESULT_CSV)
      FileUtils.cp(File.join(PLAYGROUND_DATA_PATH, PLAYGROUND_SEED_RESULT_FILE), File.join(LOCAL_RESULT_CSV, PLAYGROUND_SEED_RESULT_FILE))
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
aleph_analytics-0.4.9.pre.dev bin/executables/lib/seeder.rb
aleph_analytics-0.4.8 bin/executables/lib/seeder.rb
aleph_analytics-0.4.7 bin/executables/lib/seeder.rb
aleph_analytics-0.4.4 bin/executables/lib/seeder.rb
aleph_analytics-0.4.2 bin/executables/lib/seeder.rb
aleph_analytics-0.4.1 bin/executables/lib/seeder.rb
aleph_analytics-0.3.0 bin/executables/lib/seeder.rb
aleph_analytics-0.2.0 bin/executables/lib/seeder.rb
aleph_analytics-0.1.0 bin/executables/lib/seeder.rb
aleph_analytics-0.0.6 bin/executables/lib/seeder.rb
aleph_analytics-0.0.5 bin/executables/lib/seeder.rb
aleph_analytics-0.0.4 bin/executables/lib/seeder.rb
aleph_analytics-0.0.3 bin/executables/lib/seeder.rb
aleph_analytics-0.0.2 bin/executables/lib/seeder.rb
aleph_analytics-0.0.1.alpha bin/executables/lib/seeder.rb
aleph_analytics-0.0.0.alpha bin/executables/lib/seeder.rb