server_backups 0.1.12 → 0.1.13

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: c4b12d133a4c0a710826b522ca8f4ed179bab5a9
4
- data.tar.gz: 436d356c481c3fb5a2fb58143886ef132e4ed874
3
+ metadata.gz: 6a1cf93994e01f90ac219c9a7dbef8746c3713e0
4
+ data.tar.gz: 7f458b3b9e492a54ac359ba39dd813873d0b98a4
5
5
  SHA512:
6
- metadata.gz: 5a58929af919f09dbdcc1372e16ab92336f102bce971192bdbb29cce67def144203cdd601022c469c9c1680b56bf00b0a617538f80a77ff5bd53d3d1714253a0
7
- data.tar.gz: c30e859d7e8e67bea2ee025ecb41928c9a1323809a0966fa967c235e3e730ebe4313cbb6f8a5bf8502e6e9de8e651533c0e82a42c28fff5d4cf6cb4c7fbf2476
6
+ metadata.gz: ad6ada6bb1513464520e636e674a79494ef8170c351b63a1867622664ad5fa939880362bdfefa54652abd9994361e29eed1362b39f1ab2a99bf2c4e802d2ea92
7
+ data.tar.gz: 28f0daef5acfdf73dfdf4ac6e9cebdd0f1b6b83c93063d9fea8d011c4da40fd3a51a462f50320bc94eddcb9339d3d1e2fbe4ef977dc53a1dea7bf92b6db81f71
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- server_backups (0.1.12)
4
+ server_backups (0.1.13)
5
5
  activesupport (~> 5.1)
6
6
  aws-sdk-s3 (~> 1.8)
7
7
  main (~> 6.2)
@@ -1,9 +1,9 @@
1
1
  ###############################################################################
2
- #
2
+ #
3
3
  # Sample Backup Configuration
4
- #
5
- #
6
- #
4
+ #
5
+ #
6
+ #
7
7
  ###############################################################################
8
8
 
9
9
  logging:
@@ -26,7 +26,7 @@ time_zone: 'Singapore'
26
26
  # defaults to the value of the `time_zone` property above.
27
27
  system_time_zone: 'Asia/Ho_Chi_Minh'
28
28
 
29
- slack:
29
+ slack:
30
30
  # Set up a new webhook at https://slack.com/apps/A0F7XDUAZ-incoming-webhooks
31
31
  # Once configured, put the address here.
32
32
  webhook: https://hooks.slack.com/services/asdasdasdasdasdasdasdasdasdasd
@@ -53,6 +53,7 @@ retention:
53
53
  months: 11
54
54
 
55
55
  mysql:
56
+ host: 127.0.0.1
56
57
  # Database to back up
57
58
  database:
58
59
  # MySql credentials
@@ -128,6 +128,10 @@ module ServerBackups
128
128
  # MySQL
129
129
  #
130
130
 
131
+ def db_host
132
+ mysql['host'] || '127.0.0.1'
133
+ end
134
+
131
135
  def user
132
136
  mysql['user']
133
137
  end
@@ -76,7 +76,7 @@ module ServerBackups
76
76
 
77
77
  def cli_options
78
78
  cmd = config.password.blank? ? '' : " -p'#{config.password}' "
79
- cmd + " -u'#{config.user}' " + database_name
79
+ cmd + " -u'#{config.user}' -h #{config.db_host} " + database_name
80
80
  end
81
81
 
82
82
  def execute_sql(sql)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ServerBackups
4
- VERSION = '0.1.12'
4
+ VERSION = '0.1.13'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: server_backups
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Gannon