servitude 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/servitude/base.rb +10 -8
- data/lib/servitude/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: 53cfb7474208ec999ec104ff7f6cbebc5a95cdfc
|
4
|
+
data.tar.gz: 5eb37804b51441b9ac8556eb3b587ecb099751a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a84f41870b6242178b9ae7fabe6f710965666be7f59dc376508034f206b57d74f1edb597d0bdcb53501dcc39c194de527020c97a946d9b92bc44fe108c90d5c
|
7
|
+
data.tar.gz: cf03f89b9c90305ecfe663fe695ce43ef47c9a125511a4df69e76f2cc35452dcd10c4c9778f0ad19d953bbdb303f701912c3f5edfa2e998131910655d57d2aad
|
data/lib/servitude/base.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
1
3
|
require 'servitude'
|
2
4
|
|
3
5
|
module Servitude
|
@@ -15,15 +17,15 @@ module Servitude
|
|
15
17
|
module ClassMethods
|
16
18
|
|
17
19
|
def boot( host_namespace: raise(ArgumentError, 'host_namespace keyword is required'),
|
18
|
-
app_id:
|
19
|
-
app_name:
|
20
|
+
app_id: host_namespace.name.split( '::' ).join( '-' ).downcase,
|
21
|
+
app_name: host_namespace.name.split( '::' ).join( ' ' ),
|
20
22
|
company: raise(ArgumentError, 'company keyword is required'),
|
21
|
-
use_config:
|
22
|
-
default_config_path:
|
23
|
-
default_log_path:
|
24
|
-
default_pid_path:
|
25
|
-
default_thread_count:
|
26
|
-
version_copyright:
|
23
|
+
use_config: false,
|
24
|
+
default_config_path: nil,
|
25
|
+
default_log_path: nil,
|
26
|
+
default_pid_path: nil,
|
27
|
+
default_thread_count: nil,
|
28
|
+
version_copyright: "v#{host_namespace::VERSION} Copyright © #{Time.now.year} #{company}" )
|
27
29
|
Servitude::const_set :NS, host_namespace
|
28
30
|
|
29
31
|
const_set :APP_ID, app_id
|
data/lib/servitude/version.rb
CHANGED