Sha256: 610d6814e8dc5adeae2845c18e7c71772efd4d5e8f579fe9145d5ba9d1071a4a

Contents?: true

Size: 659 Bytes

Versions: 6

Compression:

Stored size: 659 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/operation_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

6 entries across 6 versions & 1 rubygems

Version Path
heroku_pg_backups_archive-0.3.3 lib/heroku_pg_backups_archive.rb
heroku_pg_backups_archive-0.3.2 lib/heroku_pg_backups_archive.rb
heroku_pg_backups_archive-0.3.1 lib/heroku_pg_backups_archive.rb
heroku_pg_backups_archive-0.3.0 lib/heroku_pg_backups_archive.rb
heroku_pg_backups_archive-0.2.2 lib/heroku_pg_backups_archive.rb
heroku_pg_backups_archive-0.2.1 lib/heroku_pg_backups_archive.rb