fcl_rails_daemon 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb3a178dbd7dcf9df8c11820dcfcd11c572859eb
4
- data.tar.gz: 8e0aaea8fdaff4feb3c9bf00b89b059a8b701d6a
3
+ metadata.gz: d4c30615580b23530b677ed849925b2b5e6f4cf1
4
+ data.tar.gz: 92659bf13e163b1ac01e1b762811ad4a43823638
5
5
  SHA512:
6
- metadata.gz: 9f171f3e50486485a04a2f7ec1b3c7e6461c0a6ff91ecf560242d4a38e30c5beea33e89c8019af707fce5fa302b61acfa8e1d1a3b698df52046d5065281f64e3
7
- data.tar.gz: 7d23cc4f62491883d5595ecb4ec5dff587ce333596fd30d126467432dd5a0e6bdcfafc12137fa48e2ea8adccf22f80f3543750cbc2e7fec0c53bddef86b9278c
6
+ metadata.gz: 9e9cfe642ffdaf4f83673c8d72862498954600cba1359518770d92eeeae2dfcf566fe5e101566b1fc37d3bd1a8ce9b68139645bd6e1c46f19a96df589fb12b1f
7
+ data.tar.gz: 24d5bf7a3a8ec413cd97aaf35e612781f9a2d9b69ca08affbaa7c49fdb9b748379bab5bd804aa629c30e04cd5cc227f8bde2d9654f2834a7db7d55da90564c2c
data/bin/fcld CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'fileutils'
3
3
  require 'fcl_rails_daemon/config'
4
- COMMAND['fcld'] = true
5
4
 
6
5
  base = DAEMON_ROOT
7
6
  config_dir = File.join(base, DAEMON_CONFIG['config_path'])
Binary file
data/lib/core/daemon.rb CHANGED
@@ -25,14 +25,13 @@ module FclRailsDaemon
25
25
  end
26
26
 
27
27
  def run(&block)
28
- #Load environment file (rails project)
29
- if COMMAND['fcld']
30
- env_file = File.join(DAEMON_ROOT, "config", "environment.rb")
31
- raise " ◕_◕ ༽つ OOOPS... Could not find the Rails environment file. " unless File.exist? env_file
28
+ env_file = File.join(DAEMON_ROOT, "config", "environment.rb")
29
+ raise " ༼ つ ◕_◕ ༽つ OOOPS... Could not find the Rails environment file. " unless File.exist? env_file
30
+
31
+ @daemon = Daemons.call({ multiple: true, app_name: @process_name }) do
32
+ #Load environment file (rails project)
32
33
  require env_file
33
- end
34
34
 
35
- @daemon = Daemons.call(multiple: true, app_name: @process_name) do
36
35
  #set process_name
37
36
  Process.setproctitle(@process_name)
38
37
 
data/lib/core/manager.rb CHANGED
@@ -3,7 +3,6 @@ module FclRailsDaemon
3
3
  @@commands = FclRailsDaemon::Recorder.load
4
4
 
5
5
  def self.run(argv)
6
- COMMAND['fcld'] = true
7
6
  self.set_env(argv) if argv.include?('--env')
8
7
  self.pids if argv.include?('--pids')
9
8
  self.logs if argv.include?('--logs')
@@ -1,4 +1,3 @@
1
- COMMAND = {'fcld' => false}
2
1
  DAEMON_ROOT = File.expand_path("")
3
2
  DAEMON_CONFIG = {
4
3
  "pids_file" => 'tmp/pids/fcld.yml',
@@ -1,3 +1,3 @@
1
1
  module FclRailsDaemon
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fcl_rails_daemon
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Washington Silva
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-18 00:00:00.000000000 Z
11
+ date: 2016-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -114,6 +114,7 @@ files:
114
114
  - fcl_rails_daemon-1.0.7.gem
115
115
  - fcl_rails_daemon-1.0.8.gem
116
116
  - fcl_rails_daemon-1.0.9.gem
117
+ - fcl_rails_daemon-2.0.0.gem
117
118
  - fcl_rails_daemon.gemspec
118
119
  - lib/core/daemon.rb
119
120
  - lib/core/manager.rb