Sha256: ef03568df5ade721f852ce6b85992802983df1fd9b3f6c9ebcb3d95aded50b04

Contents?: true

Size: 560 Bytes

Versions: 4

Compression:

Stored size: 560 Bytes

Contents

require "backhoe/version"
require "backhoe/dump"
require "backhoe/load"
require "backhoe/backup"
require "backhoe/database"
require "active_record"

module Backhoe
  class << self
    def dump file_path, skip_tables: [], skip_columns: {}
      Dump.new(Database.new, file_path, skip_tables, skip_columns).call
    end

    def load file_path, drop_and_create: false
      Load.new(Database.new, file_path, drop_and_create).call
    end

    def backup s3_path, access_key:, secret_key:
      Backup.new(s3_path, access_key, secret_key).call
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
backhoe-0.8.3 lib/backhoe.rb
backhoe-0.8.2 lib/backhoe.rb
backhoe-0.8.0 lib/backhoe.rb
backhoe-0.7.0 lib/backhoe.rb