Sha256: 3e8a7706c1f8713326904b7727c46d774ad26dba5adcd3776e89d1e720921005
Contents?: true
Size: 553 Bytes
Versions: 4
Compression:
Stored size: 553 Bytes
Contents
require_relative "helper.rb" module LoadHelper def self.import_on_local() run_locally do execute "mysql #{Helper::mysql_args} < #{fetch(:db_local_dump)}" end end def self.import_on_container(container) container.upload!(fetch(:db_local_dump), fetch(:db_remote_dump)) container.execute("mysql #{Helper::mysql_args} < #{fetch(:db_remote_dump)}") end def self.import_on_server() upload!(fetch(:db_local_dump), fetch(:db_remote_dump)) execute("mysql #{Helper::mysql_args} < #{fetch(:db_remote_dump)}") end end
Version data entries
4 entries across 4 versions & 1 rubygems