scalingo_backups_manager 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9eecdc10b8f73d2a91d42fc47b3c53656f6089d0b3272fc6c40bb05b4239ed42
4
- data.tar.gz: 97a79403c485891560862c3e3f9181a5e9df0c30f7fa6eb190303ee21137f466
3
+ metadata.gz: 22aae190ac267f91679c59c01c34a385d7d31b8859c05c106e280bd8c449bc32
4
+ data.tar.gz: 4db5340d871f30d632067a274178837561716c289fe57fa72b1cc7a7af6a38cc
5
5
  SHA512:
6
- metadata.gz: 0b476dc2a1651226d6ef0c11961ce4815d5250c76657167c4081e5bc25091282f176be3406c9c7c7fdf237ba3483fe4f73430a47e9323020697e43a7c8625fc8
7
- data.tar.gz: 339c818aecf115a985df7ae57bce015880abe5b4527a80f17ff8dbedb4cef2f7650720cf48423bf2c1fbdd0cfc8a31a25fe28a7928684d9426f898485a29b88b
6
+ metadata.gz: 50c9ee867cfbb4f09c14cc82a7675ebd43c561d87fdaea720cf4ad0455be6aec87dcb022103e82638bc722c2c09f07fe29386c621e05338e30cafd43074eb8a2
7
+ data.tar.gz: af4e44b07ad73739b00fdb2e77be8c7dd80e8a0fdff376e87cfaf73c3a1e2618e90761adc46c5d61477b78c1730f2c0c3fadf705b2ed8cb5822008230b559bf6
data/.DS_Store ADDED
Binary file
data/.gitignore CHANGED
@@ -11,4 +11,5 @@
11
11
  .rspec_status
12
12
  scalingo-backups-config.yml
13
13
  /backups/
14
- .idea
14
+ .idea
15
+ .rbenv-vars
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- scalingo_backups_manager (0.6.6)
4
+ scalingo_backups_manager (0.7.0)
5
5
  httparty (~> 0.18)
6
6
  net-sftp (~> 3.0.0)
7
7
  scalingo (~> 3.0)
@@ -10,13 +10,12 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activesupport (6.1.4.6)
13
+ activesupport (7.0.3)
14
14
  concurrent-ruby (~> 1.0, >= 1.0.2)
15
15
  i18n (>= 1.6, < 2)
16
16
  minitest (>= 5.1)
17
17
  tzinfo (~> 2.0)
18
- zeitwerk (~> 2.3)
19
- concurrent-ruby (1.1.9)
18
+ concurrent-ruby (1.1.10)
20
19
  diff-lcs (1.4.4)
21
20
  faraday (1.10.0)
22
21
  faraday-em_http (~> 1.0)
@@ -54,7 +53,7 @@ GEM
54
53
  minitest (5.15.0)
55
54
  multi_json (1.15.0)
56
55
  multi_xml (0.6.0)
57
- multipart-post (2.1.1)
56
+ multipart-post (2.2.0)
58
57
  net-sftp (3.0.0)
59
58
  net-ssh (>= 5.0.0, < 7.0.0)
60
59
  net-ssh (6.1.0)
@@ -81,7 +80,6 @@ GEM
81
80
  thor (1.2.1)
82
81
  tzinfo (2.0.4)
83
82
  concurrent-ruby (~> 1.0)
84
- zeitwerk (2.5.4)
85
83
 
86
84
  PLATFORMS
87
85
  ruby
@@ -92,4 +90,4 @@ DEPENDENCIES
92
90
  scalingo_backups_manager!
93
91
 
94
92
  BUNDLED WITH
95
- 2.2.28
93
+ 2.3.13
@@ -79,20 +79,24 @@ module ScalingoBackupsManager
79
79
  end
80
80
 
81
81
  configuration.for_each_addons(searched_application, searched_addon) do |application, addon|
82
- backups = addon.backups
83
- next unless backups.size > 0
84
- backup = backups.first
85
- download_link = backup.download_link
86
- if download_link
82
+ begin
87
83
  puts "Downloading #{application.name} last backup"
88
- path = ("#{addon.config[:path]}" || "backups/#{addon.addon_provider[:id]}") + "/#{Time.now.strftime("%Y%m%d")}.tar.gz"
89
- if File.exist?(path)
90
- puts "Backup already download, skipping..."
84
+ backups = addon.backups
85
+ next unless backups.size > 0
86
+ backup = backups.first
87
+ download_link = backup.download_link
88
+ if download_link
89
+ path = ("#{addon.config[:path]}" || "backups/#{addon.addon_provider[:id]}") + "/#{Time.now.strftime("%Y%m%d")}.tar.gz"
90
+ if File.exist?(path)
91
+ puts "Backup already download, skipping..."
92
+ else
93
+ system "curl #{download_link} -o #{path} --create-dirs -k"
94
+ end
91
95
  else
92
- system "curl #{download_link} -o #{path} --create-dirs -k"
96
+ puts "No download link found for #{addon.addon_provider[:id]}, Skipping..."
93
97
  end
94
- else
95
- puts "No download link found for #{addon.addon_provider[:id]}, Skipping..."
98
+ rescue
99
+ puts "Issue with configuration of #{application.name}"
96
100
  end
97
101
  end
98
102
  end
@@ -1,3 +1,3 @@
1
1
  module ScalingoBackupsManager
2
- VERSION = "0.7.0"
2
+ VERSION = "0.8.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scalingo_backups_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Clercin
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-17 00:00:00.000000000 Z
11
+ date: 2022-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 3.0.0
69
- description:
69
+ description:
70
70
  email:
71
71
  - kevin@9troisquarts.com
72
72
  executables:
@@ -74,6 +74,7 @@ executables:
74
74
  extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
+ - ".DS_Store"
77
78
  - ".gitignore"
78
79
  - ".rspec"
79
80
  - ".travis.yml"
@@ -106,7 +107,7 @@ metadata:
106
107
  homepage_uri: https://github.com/9troisquarts/scalingo_backups_manager
107
108
  source_code_uri: https://github.com/9troisquarts/scalingo_backups_manager
108
109
  changelog_uri: https://github.com/9troisquarts/scalingo_backups_manager/CHANGELOG.md
109
- post_install_message:
110
+ post_install_message:
110
111
  rdoc_options: []
111
112
  require_paths:
112
113
  - lib
@@ -121,8 +122,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
122
  - !ruby/object:Gem::Version
122
123
  version: '0'
123
124
  requirements: []
124
- rubygems_version: 3.1.6
125
- signing_key:
125
+ rubygems_version: 3.3.7
126
+ signing_key:
126
127
  specification_version: 4
127
128
  summary: Gem allowing to download backups from scalingo
128
129
  test_files: []