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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/server_backups/config.rb +2 -2
- data/lib/server_backups/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 08b9751ec284c40734504d701e33e4b9c356a800
|
4
|
+
data.tar.gz: 85b4d30b5a4d073d7e11b99175a29d4d1495d010
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f280476c1242600c7cbb20c15d3b2135bfd53ffdbc20441d14942fc3d0d19e1ff055eb6262a78c95fa7c8b750409cdbbc50432e418fa6bcda7cc1bcc6a6d1dd4
|
7
|
+
data.tar.gz: 90d80b33440f98ad0f5bc6ddf797006788633eb624d40cb49483305adaac7f368a2f4c4cfa54782709034ce417e40d2f90869251f6b2b64ac1f0a58b536ea6d7
|
data/Gemfile.lock
CHANGED
@@ -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
|
-
|
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)
|