pushyd 0.26.2 → 0.27.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/pushyd +6 -2
  3. data/pushyd.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 51360ced76b4a7745af4144fad153b46c981e69d
4
- data.tar.gz: 046a252daeac44bfcdfc01cab5f5061ab8062d4e
3
+ metadata.gz: 1c687913ba9e0ef819a7a9439c5ebb3331699848
4
+ data.tar.gz: d1a40a6414b338a1855eb8f735600e72c09a8e27
5
5
  SHA512:
6
- metadata.gz: 2d23106d977f9392c94c859b9542938c329f132d9467249b474542a0506c97cb269491f5c4c3e96da096b59210314038882135b879ed05f24a6e9c50d8965b50
7
- data.tar.gz: b5ac7f487ce86f8fd47ef6235c9fc10db03fd3a46590fd644bea2b659b5c428a1766fa242cce5c7289a84339bfacd83cb9f39a28c07d973f42f3bdfa4b333d0b
6
+ metadata.gz: 126b696364c17ab53699bb61460e92d50f0a4bc301df3acce409ae5f67eb7ca91b9ec77e49a56c89f0bac347e4dc6c057653334ed31eca106d0567ee16514fbe
7
+ data.tar.gz: 1c5f9e952b63ee625044f3c96164f70f0005cf1b665a77bc095af079eb303a9e98f6350c4e673a5cba84d391d2167def82f6aaf74b9a2e93adc06d40106aa1ab
data/bin/pushyd CHANGED
@@ -18,6 +18,7 @@ begin
18
18
  cmd_config = nil
19
19
  cmd_logfile = nil
20
20
  cmd_dump = nil
21
+ cmd_daemonize = nil
21
22
 
22
23
  # Init Chamber-based configuration from Gemspec
23
24
  Conf.init File.dirname(__FILE__) + "/../"
@@ -29,6 +30,8 @@ begin
29
30
  opts.on("-l", "--log LOGFILE") { |path| cmd_logfile = File.expand_path(path.to_s)}
30
31
  opts.on("-c", "--config CONFIGFILE") { |path| cmd_config = File.expand_path(path.to_s)}
31
32
  opts.on("-e", "--environment ENV") { |env| Conf.app_env = env }
33
+ opts.on("-d", "--daemonize", "Run daemonized in the background"){ cmd_daemonize = true }
34
+ opts.on("-f", "--foreground", "Run in the foreground") { cmd_daemonize = false }
32
35
  opts.on("", "--dev") { Conf.app_env = "development" }
33
36
  opts.on("", "--dump", "Dump config as seen by the process") { |value| cmd_dump = true }
34
37
  end
@@ -55,6 +58,7 @@ puts "--- #{Conf.app_name} #{Conf.app_ver}"
55
58
  puts "Environment \t #{Conf.app_env}"
56
59
  puts "Config files \t #{Conf.files}"
57
60
  puts "Started at \t #{Conf.app_started}"
61
+ puts "Daemonize \t #{cmd_daemonize}"
58
62
  puts "Loging to file \t #{Conf[:log][:file]}" if Conf[:log].is_a? Enumerable
59
63
  puts "Process name \t #{Conf.generate_process_name}"
60
64
  puts "Newrelic \t #{Conf.feature_newrelic? || '-'}"
@@ -66,8 +70,8 @@ end
66
70
 
67
71
  # Run daemon
68
72
  run_options = {
69
- monitor: false,
70
- ontop: false,
73
+ monitor: false,
74
+ ontop: !cmd_daemonize,
71
75
  backtrace: true,
72
76
  multiple: false,
73
77
  dir_mode: :normal,
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
  # Project version
4
- spec.version = "0.26.2"
4
+ spec.version = "0.27.0"
5
5
 
6
6
  # Project description
7
7
  spec.name = "pushyd"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pushyd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.2
4
+ version: 0.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno MEDICI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-11 00:00:00.000000000 Z
11
+ date: 2017-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler