fcl_rails_daemon 1.0.10 → 1.0.11

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: 70bc0c10389e1ccf272628e51e190ff94f6477c7
4
- data.tar.gz: f2f3c542304c6df46169ee92e3b56d0f1ac76c7e
3
+ metadata.gz: 35a519a7b801b216a0870d833d43656fb04d8223
4
+ data.tar.gz: 339d69ec8999533c79ddacf6db0150f5f61d3975
5
5
  SHA512:
6
- metadata.gz: 22688a3a48f56bc0232ff74fc679011be4a580a570dc045386228e77a36d03f3a2cc770593633addc4beabcc93f6c16c81e2b522ad81a5f5c52cac638020f4fd
7
- data.tar.gz: 051734232b8d56405ce5f9efa9f860a004e68005baa4557f877c8b96d3c90babb9ea233647d770644ad8fd64f35716a9cc4323f486e21fec3ed1f1a57fffa530
6
+ metadata.gz: 2b9cf2bfb3a967197504df512932e9de9acd2ba3a467da4f983516438a2b8422493af6087f94863c47fff88f9d40742fb7bf6780d6691f528bf1eafdc891d63d
7
+ data.tar.gz: db084dc1c640468973f8ae158c574961c4df5e846dca3a770f39b25c8cab00db23562ebc063e5b05c744f73ad83d40be737cb2435b6905fd8b74956f03288b48
data/bin/fcld CHANGED
@@ -11,8 +11,8 @@ config_file = File.join(config_dir, 'fcld_rails_daemon.rb')
11
11
  if ARGV.include? "--configure"
12
12
  config_file_content = <<-FILE
13
13
  # Carrega arquivo de environment (projeto rails)
14
- if File.exist?(File.join("#{DAEMON_ROOT}", "config", "environment"))
15
- require File.join("#{DAEMON_ROOT}", "config", "environment")
14
+ if File.exist?(File.join("#{DAEMON_ROOT}", "config", "environment.rb"))
15
+ require File.join("#{DAEMON_ROOT}", "config", "environment.rb")
16
16
  end
17
17
 
18
18
  # Para registrar seus comandos é necessário adicioná-los conforme o exemplo abaixo
@@ -24,11 +24,6 @@ end
24
24
  File.open(config_file, 'wb') {|f| f.write(config_file_content) } unless File.exist?(config_file)
25
25
 
26
26
  command_sample_content = <<-FILE
27
- # Carrega arquivo de environment (projeto rails)
28
- if File.exist?(File.join("#{DAEMON_ROOT}", "config", "environment"))
29
- require File.join("#{DAEMON_ROOT}", "config", "environment")
30
- end
31
-
32
27
  class ComandoExemplo < FclRailsDaemon::Daemon
33
28
 
34
29
  # Obrigatóriamente é necessário implementar o método "initialize"
@@ -126,11 +126,6 @@ module FclRailsDaemon
126
126
  comando_undescore = ActiveSupport::Inflector.underscore(comando)
127
127
 
128
128
  conteudo = <<-FILE
129
- # Carrega arquivo de environment (projeto rails)
130
- if File.exist?(File.join("#{DAEMON_ROOT}", "config", "environment"))
131
- require File.join("#{DAEMON_ROOT}", "config", "environment")
132
- end
133
-
134
129
  class #{comando_camel} < FclRailsDaemon::Daemon
135
130
 
136
131
  # Obrigatóriamente é necessário implementar o método "initialize"
@@ -1,3 +1,3 @@
1
1
  module FclRailsDaemon
2
- VERSION = "1.0.10"
2
+ VERSION = "1.0.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fcl_rails_daemon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Washington Silva