server_backups 0.1.11 → 0.1.12

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
  SHA1:
3
- metadata.gz: 721a338efcd1c7f8d49d296102875dd3f99e457c
4
- data.tar.gz: 4e562b0840ecc6fd66aed00d97f7fbee0a73b1a5
3
+ metadata.gz: c4b12d133a4c0a710826b522ca8f4ed179bab5a9
4
+ data.tar.gz: 436d356c481c3fb5a2fb58143886ef132e4ed874
5
5
  SHA512:
6
- metadata.gz: cd92178f21439fb58548602b6dfb88df807d326f60fb93fd6eb88ca1575f51f813284784c0faf70ac150ca04c8cf60c19ca9acb03f4a4dcc80d71a2983f090a1
7
- data.tar.gz: 94f5b05093af28c08f8fed50d4c9de023da987d74d36c2d306dc10eb7255d667c5f1486d62050c92cb941db1cd2c1d0a0b1587099a6ae34c33f351475b0024b2
6
+ metadata.gz: 5a58929af919f09dbdcc1372e16ab92336f102bce971192bdbb29cce67def144203cdd601022c469c9c1680b56bf00b0a617538f80a77ff5bd53d3d1714253a0
7
+ data.tar.gz: c30e859d7e8e67bea2ee025ecb41928c9a1323809a0966fa967c235e3e730ebe4313cbb6f8a5bf8502e6e9de8e651533c0e82a42c28fff5d4cf6cb4c7fbf2476
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- server_backups (0.1.11)
4
+ server_backups (0.1.12)
5
5
  activesupport (~> 5.1)
6
6
  aws-sdk-s3 (~> 1.8)
7
7
  main (~> 6.2)
data/README.md CHANGED
@@ -69,7 +69,7 @@ The latter option is useful if you'd like to keep passwords and keys in variable
69
69
  rather than saving them to the filesystem.
70
70
 
71
71
  ```bash
72
- envsubst < back_conf.yml.tmpl | server_backup daily
72
+ envsubst < back_conf.yml.tmpl | server_backup daily -c -
73
73
  ```
74
74
 
75
75
  ### Set up your crontab.
@@ -15,7 +15,8 @@ module ServerBackups
15
15
  def initialize(config_file = nil)
16
16
  if config_file == '-'
17
17
  @config_file = config_file
18
- @config = YAML::safe_load STDIN.read()
18
+ @@config ||= YAML::safe_load STDIN.read()
19
+ @config = @@config
19
20
  else
20
21
  @config_file = config_file || default_config_file
21
22
  @config = YAML.load_file File.expand_path(config_file)
@@ -23,7 +24,8 @@ module ServerBackups
23
24
 
24
25
  @logging = @config['logging']
25
26
  @logger = Logger.new(log_device, logfile_count, logfile_size)
26
- rescue Errno::ENOENT
27
+ rescue Errno::ENOENT => e
28
+ puts e.backtrace
27
29
  warn "missing config file #{config_file}"
28
30
  exit 1
29
31
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ServerBackups
4
- VERSION = '0.1.11'
4
+ VERSION = '0.1.12'
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.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Gannon