pechkin 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pechkin.rb +9 -4
- data/lib/pechkin/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2166aaacd30bc05dfd296593e02d22cc097d5106dd7dad58572650d4580b6342
|
4
|
+
data.tar.gz: fcc1bd8cb27ad1d4d7758574b1ee33706aac3d76c033fb7b3558b9a46fc3ff0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63f33140ef49b37016263d006ef0ae7b0dd7773b5d865584a8eb9f784b498e1998b0218120105be6337db739f9e1daaf44b333d0a490f33b153591dba2168421
|
7
|
+
data.tar.gz: 7c80b47d54c900718b9defb2533b45d35597ba2db15bc66f944f96ca7f8a09a57573761628171505846f7dfc4ded42483fffd993e7bda587f7925ebe6974f9d3
|
data/lib/pechkin.rb
CHANGED
@@ -10,14 +10,19 @@ module Pechkin # :nodoc:
|
|
10
10
|
def run
|
11
11
|
options = CLI.parse(ARGV)
|
12
12
|
configuration = Config.new(options.config_file)
|
13
|
-
log_dir
|
13
|
+
setup_logging(options.log_dir) if options.log_dir
|
14
14
|
app = Pechkin.create(configuration)
|
15
|
-
|
16
|
-
app.logger = ::Logger.new(File.join(log_dir, 'pechkin.log'), 'daily')
|
17
|
-
end
|
15
|
+
PechkinAPI.logger.info 'Starting pechkin service...'
|
18
16
|
Rack::Server.start(app: app,
|
19
17
|
Port: options.port || configuration.port,
|
20
18
|
pid: options.pid_file)
|
21
19
|
end
|
20
|
+
|
21
|
+
def setup_logging(log_dir)
|
22
|
+
logger = ::Logger.new(File.join(log_dir, 'pechkin.log'), 'daily')
|
23
|
+
logger.level = ::Logger::INFO
|
24
|
+
|
25
|
+
PechkinAPI.logger = logger
|
26
|
+
end
|
22
27
|
end
|
23
28
|
end
|
data/lib/pechkin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pechkin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilya Arkhanhelsky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grape
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: rack
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 2.0.6
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 2.0.6
|
41
41
|
description:
|
42
42
|
email: ilya.arkhanhelsky at gmail.com
|
43
43
|
executables:
|