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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9470229042d48e6dadee57277d8cbf00d3bd7266
4
- data.tar.gz: 9ba3fb356cd6763c5e1a08dd94044d3d46283176
3
+ metadata.gz: c0df436e41b4b128662ad2fe1fd763fc65a2d6e3
4
+ data.tar.gz: eb0c8348f1c64161e9e54d565695fe214573cc5a
5
5
  SHA512:
6
- metadata.gz: e82a4f6c5b0eea9aad6ce5d5e25c3d5fbd41832db53b844058f38a623469197239ca55e80e9c51ee040b6e8538d5d8c6edcde2fa99f42a367c94166b35287068
7
- data.tar.gz: 14a40ab4dc47badf34e3dd4c8c8532f692cd8f12bd8b1c1121d247d78c55f39785dd88f663299e0ad0fedb2b35c106991d50d4ff70dbed5c3a3a20c6cd94270e
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)
@@ -1,3 +1,3 @@
1
1
  module FclRailsDaemon
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.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.1.0
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-01-29 00:00:00.000000000 Z
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