heroku_pg_backups_archive 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 19156a6394539ce2bbffedc9d02875e612dd455f
4
- data.tar.gz: ef4633627926925d419d97f5e35f8f7a58a1d045
3
+ metadata.gz: 30abe9a988560377d39f5c0094ba36add75b6837
4
+ data.tar.gz: 32424a2e516ea1118dc2e528b4bf5edaf0fc2f1d
5
5
  SHA512:
6
- metadata.gz: ac6f2d75f9b0b1600ae04f867d269777caca155afe4f2a9a189b15dc46c9ee79f675f6d66808d5f8cb95a4ad75b6e99e94e0799d57d2395c251b71e78b9a6bf8
7
- data.tar.gz: 218fdf8d100aeb688e7a8c081d5eb515534581e5f3e765025b8eec4b666ea1ec39c605c7c5afbda981f61dfc398bc3c6e489044d60ce2abfa1d7752acfb4c251
6
+ metadata.gz: 2fae938567ccb30da88c7958cdd8f273a58f23008f8ca45c8fa8d8ab197763bf3823053a1fb245beee1739c74fcb4bcc24ea5970df854767d29ec1a35fa0d0cc
7
+ data.tar.gz: 55079476bf2bacebee703abc8927ed0dc9a1745d79c45582951bb6f955b36de106c0d74a27ff68054d60f87f97e2f6981ab11ef65a78ea4db82a1a7d9ca90869
data/README.md CHANGED
@@ -33,6 +33,7 @@ HerokuPgBackupsArchive.configure do |config|
33
33
  config.heroku_toolbelt_path = "path/to/heroku/executable" # defaults to `vendor/heroku-toolbelt/bin/heroku` when not explicitly set
34
34
  config.aws_access_key_id = "aws-secret-key-id" # defaults to `ENV["AWS_ACCESS_KEY_ID"]` when not explicitly set
35
35
  config.aws_secret_access_key = "aws-secret-access-key" # defaults to `ENV["AWS_SECRET_ACCESS_KEY"]` when not explicitly set
36
+ config.after_complete = lambda { puts "I'm all done!" } # defaults to no action
36
37
  end
37
38
  ```
38
39
 
@@ -19,6 +19,7 @@ module HerokuPgBackupsArchive
19
19
  def backup_and_archive
20
20
  backup = Backup.create
21
21
  BackupArchive.perform(backup)
22
+ config.after_complete.call unless config.after_complete.nil?
22
23
  end
23
24
  end
24
25
  end
@@ -1,6 +1,6 @@
1
1
  module HerokuPgBackupsArchive
2
2
  class Config
3
- attr_accessor :heroku_toolbelt_path, :app_name, :sse_customer_key, :bucket_name, :aws_access_key_id, :aws_secret_access_key
3
+ attr_accessor :heroku_toolbelt_path, :app_name, :sse_customer_key, :bucket_name, :aws_access_key_id, :aws_secret_access_key, :after_complete
4
4
 
5
5
  def initialize
6
6
  @heroku_toolbelt_path = "vendor/heroku-toolbelt/bin/heroku"
@@ -1,3 +1,3 @@
1
1
  module HerokuPgBackupsArchive
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku_pg_backups_archive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hightower