server_backups 0.1.13 → 0.1.14

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: 6a1cf93994e01f90ac219c9a7dbef8746c3713e0
4
- data.tar.gz: 7f458b3b9e492a54ac359ba39dd813873d0b98a4
3
+ metadata.gz: 08b9751ec284c40734504d701e33e4b9c356a800
4
+ data.tar.gz: 85b4d30b5a4d073d7e11b99175a29d4d1495d010
5
5
  SHA512:
6
- metadata.gz: ad6ada6bb1513464520e636e674a79494ef8170c351b63a1867622664ad5fa939880362bdfefa54652abd9994361e29eed1362b39f1ab2a99bf2c4e802d2ea92
7
- data.tar.gz: 28f0daef5acfdf73dfdf4ac6e9cebdd0f1b6b83c93063d9fea8d011c4da40fd3a51a462f50320bc94eddcb9339d3d1e2fbe4ef977dc53a1dea7bf92b6db81f71
6
+ metadata.gz: f280476c1242600c7cbb20c15d3b2135bfd53ffdbc20441d14942fc3d0d19e1ff055eb6262a78c95fa7c8b750409cdbbc50432e418fa6bcda7cc1bcc6a6d1dd4
7
+ data.tar.gz: 90d80b33440f98ad0f5bc6ddf797006788633eb624d40cb49483305adaac7f368a2f4c4cfa54782709034ce417e40d2f90869251f6b2b64ac1f0a58b536ea6d7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- server_backups (0.1.13)
4
+ server_backups (0.1.14)
5
5
  activesupport (~> 5.1)
6
6
  aws-sdk-s3 (~> 1.8)
7
7
  main (~> 6.2)
@@ -8,6 +8,7 @@ require 'logger'
8
8
  module ServerBackups
9
9
  class Config
10
10
  attr_reader :logger, :logging, :config_file
11
+ cattr_accessor :config
11
12
 
12
13
  DEFAULT_LOGFILE_SIZE = 1.megabytes
13
14
  DEFAULT_LOGFILE_COUNT = 7
@@ -15,8 +16,7 @@ module ServerBackups
15
16
  def initialize(config_file = nil)
16
17
  if config_file == '-'
17
18
  @config_file = config_file
18
- @@config ||= YAML::safe_load STDIN.read()
19
- @config = @@config
19
+ @config = Config::config ||= YAML::safe_load STDIN.read()
20
20
  else
21
21
  @config_file = config_file || default_config_file
22
22
  @config = YAML.load_file File.expand_path(config_file)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ServerBackups
4
- VERSION = '0.1.13'
4
+ VERSION = '0.1.14'
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.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Gannon