fcl_rails_daemon 2.1.2 → 2.1.3

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: 0a445bf77b8512ec7a2cc4ae137f53727a47eb54
4
- data.tar.gz: 58964d78c58c2eae570cdea9282a93aad97c3e93
3
+ metadata.gz: 46d9f55f127a497aefb330e40204df3ad00378cb
4
+ data.tar.gz: c99f8fac19da272a9112f2583cf0338d2bce9825
5
5
  SHA512:
6
- metadata.gz: b9d68261b6507b4d0732e6af75fcd46b3f8fdaea3217a4b706da45855fb204b060afe76a551a7267ca227158be3ce360a4c07ec9f5867b597928c703343b4aae
7
- data.tar.gz: a29ab9c4ea40178b6f7b545582c057c30b758ff50e77687f7c6a0d6df98436dc42e2a470b3b517e7b7e789d0d38dd90a066618409a74d8204728f7451addb190
6
+ metadata.gz: 42e400e529858c892534cdeec110a83b3d0181b092e6e572455334d3002dcdefc69f71aa7a09f8aa2e6b7416aadc859d828b73a02da806293dfb85be2cd229df
7
+ data.tar.gz: 2894f0d4836839e0e7b9ac4cfa6986629fab0bb5256f829665e064462f401415e5ca2f095edcb2be6cf51b1040e6b89886ef29a4b2cbab9e21c53156adb8fe48
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # FclRailsDaemon
2
2
 
3
- This gem was developed to facilitate through the CLI management processes running ruby programs.
3
+ This gem was developed to facilitate the creation and management processes in rails projects.
4
4
 
5
5
  ## Installation
6
6
 
data/bin/fcld CHANGED
@@ -77,6 +77,12 @@ unless File.exist?(commands_file)
77
77
  exit
78
78
  end
79
79
 
80
+ if ARGV.include?("--env")
81
+ i = ARGV.index('--env') + 1
82
+ env = ARGV[i]
83
+ ENV['RAILS_ENV'] = env
84
+ end
85
+
80
86
  #check if exist rails environment file
81
87
  env_file = File.join(DAEMON_ROOT, "config", "environment.rb")
82
88
  raise " ༼ つ ◕_◕ ༽つ OOOPS... Could not find the Rails environment file. " unless File.exist? env_file
Binary file
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
- self.set_env(argv) if argv.include?('--env')
7
6
  self.pids if argv.include?('--pids')
8
7
  self.logs if argv.include?('--logs')
9
8
  self.set_process_name(argv) if (argv.include?('--command') && argv.include?('--process_name'))
@@ -105,12 +104,6 @@ module FclRailsDaemon
105
104
  exit
106
105
  end
107
106
 
108
- def self.set_env(argv)
109
- i = argv.index('--env') + 1
110
- env = argv[i]
111
- ENV['RAILS_ENV'] = env
112
- end
113
-
114
107
  def self.create_command(argv)
115
108
  i = argv.index('--create') + 1
116
109
  command = argv[i]
@@ -1,3 +1,3 @@
1
1
  module FclRailsDaemon
2
- VERSION = "2.1.2"
2
+ VERSION = "2.1.3"
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.2
4
+ version: 2.1.3
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-02-04 00:00:00.000000000 Z
11
+ date: 2016-02-12 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.2.gem
104
105
  - fcl_rails_daemon.gemspec
105
106
  - lib/core/daemon.rb
106
107
  - lib/core/manager.rb