fcl_rails_daemon 2.1.0 → 2.1.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 +4 -4
- data/bin/fcld +5 -0
- data/fcl_rails_daemon-2.1.0.gem +0 -0
- data/lib/core/daemon.rb +0 -5
- data/lib/fcl_rails_daemon/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0df436e41b4b128662ad2fe1fd763fc65a2d6e3
|
4
|
+
data.tar.gz: eb0c8348f1c64161e9e54d565695fe214573cc5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f008a02aadd44d4cdda7a3f702fe1e1deda41e997f1da26c6ed2b586d871f4773871d5108478f4c6c3413a0c05bac6bf075773547aa42ac9467b4434c08d6a7
|
7
|
+
data.tar.gz: ae0bf6ebbb8b8746eb55fc6047c51f1b12aa0becf5c28a77e31ba5489ab5077d79f74c07790472326cfc7f4c0eb54fca92292aae97d07d978ad9ea05b2ffcfcf
|
data/bin/fcld
CHANGED
@@ -77,6 +77,11 @@ unless File.exist?(commands_file)
|
|
77
77
|
exit
|
78
78
|
end
|
79
79
|
|
80
|
+
#check if exist rails environment file
|
81
|
+
env_file = File.join(DAEMON_ROOT, "config", "environment.rb")
|
82
|
+
raise " ༼ つ ◕_◕ ༽つ OOOPS... Could not find the Rails environment file. " unless File.exist? env_file
|
83
|
+
require env_file
|
84
|
+
|
80
85
|
require 'fcl_rails_daemon'
|
81
86
|
require 'fcl_rails_daemon/version'
|
82
87
|
|
Binary file
|
data/lib/core/daemon.rb
CHANGED
@@ -27,14 +27,9 @@ module FclRailsDaemon
|
|
27
27
|
def run(loop: false, sleep: nil, &block )
|
28
28
|
raise " ༼ つ ◕_◕ ༽つ OOOPS... Block is mandatory to run the command. " unless block_given?
|
29
29
|
|
30
|
-
#check if exist rails environment file
|
31
|
-
env_file = File.join(DAEMON_ROOT, "config", "environment.rb")
|
32
|
-
raise " ༼ つ ◕_◕ ༽つ OOOPS... Could not find the Rails environment file. " unless File.exist? env_file
|
33
|
-
|
34
30
|
print @process_name
|
35
31
|
@daemon = Daemons.call(multiple: true, app_name: '' ) do
|
36
32
|
#Load environment file (rails project)
|
37
|
-
require env_file
|
38
33
|
|
39
34
|
#set process_name
|
40
35
|
Process.setproctitle(@process_name)
|
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.1.
|
4
|
+
version: 2.1.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-
|
11
|
+
date: 2016-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -101,6 +101,7 @@ files:
|
|
101
101
|
- bin/console
|
102
102
|
- bin/fcld
|
103
103
|
- bin/setup
|
104
|
+
- fcl_rails_daemon-2.1.0.gem
|
104
105
|
- fcl_rails_daemon.gemspec
|
105
106
|
- lib/core/daemon.rb
|
106
107
|
- lib/core/manager.rb
|