Sha256: 845a3b3d3378a88b0a479b9c25b32843c7ad7c26f9ffdce54dff0b7978e814f6

Contents?: true

Size: 656 Bytes

Versions: 2

Compression:

Stored size: 656 Bytes

Contents

require "heroku_pg_backups_archive/version"
require "heroku_pg_backups_archive/config"
require "heroku_pg_backups_archive/backup"
require "heroku_pg_backups_archive/backup_archive"
require "heroku_pg_backups_archive/backup_failed_error"
require "heroku_pg_backups_archive/toolbelt_helper"
require "heroku_pg_backups_archive/railtie"

module HerokuPgBackupsArchive
  class << self
    def config
      @config ||= Config.new
    end

    def configure
      yield config
    end

    def backup_and_archive
      backup = Backup.create
      BackupArchive.perform(backup)
      config.after_complete.call unless config.after_complete.nil?
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
heroku_pg_backups_archive-0.2.0 lib/heroku_pg_backups_archive.rb
heroku_pg_backups_archive-0.1.3 lib/heroku_pg_backups_archive.rb