julien51-babylon 0.0.13 → 0.0.14
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.
- data/Rakefile +4 -4
- data/lib/babylon/generator.rb +2 -2
- data/lib/babylon/runner.rb +1 -1
- data/templates/babylon/{tmp/log → log}/development.log +0 -0
- data/templates/babylon/{tmp/log → log}/production.log +0 -0
- data/templates/babylon/{tmp/log → log}/test.log +0 -0
- data/templates/babylon/script/component +2 -2
- data/templates/babylon/tmp/{pid → pids}/README +0 -0
- metadata +5 -5
data/Rakefile
CHANGED
@@ -36,10 +36,10 @@ begin
|
|
36
36
|
"templates/babylon/config/dependencies.rb",
|
37
37
|
"templates/babylon/config/routes.rb",
|
38
38
|
"templates/babylon/script/component",
|
39
|
-
"templates/babylon/
|
40
|
-
"templates/babylon/
|
41
|
-
"templates/babylon/
|
42
|
-
"templates/babylon/tmp/
|
39
|
+
"templates/babylon/log/test.log",
|
40
|
+
"templates/babylon/log/development.log",
|
41
|
+
"templates/babylon/log/production.log",
|
42
|
+
"templates/babylon/tmp/pids/README"
|
43
43
|
]
|
44
44
|
gem.rubyforge_project = 'babylon'
|
45
45
|
end
|
data/lib/babylon/generator.rb
CHANGED
@@ -44,10 +44,10 @@ module Babylon
|
|
44
44
|
d.destination = "#{application_name}/tmp"
|
45
45
|
end
|
46
46
|
empty_directory :log_directory do |d|
|
47
|
-
d.destination = "#{application_name}/
|
47
|
+
d.destination = "#{application_name}/log"
|
48
48
|
end
|
49
49
|
empty_directory :pid_directory do |d|
|
50
|
-
d.destination = "#{application_name}/tmp/
|
50
|
+
d.destination = "#{application_name}/tmp/pids"
|
51
51
|
end
|
52
52
|
|
53
53
|
# And now add the critical files
|
data/lib/babylon/runner.rb
CHANGED
@@ -18,7 +18,7 @@ module Babylon
|
|
18
18
|
EventMachine.run do
|
19
19
|
|
20
20
|
# Add an outputter to the logger
|
21
|
-
Babylon.logger.add(Log4r::FileOutputter.new("#{Babylon.environment}", :filename => "
|
21
|
+
Babylon.logger.add(Log4r::FileOutputter.new("#{Babylon.environment}", :filename => "log/#{Babylon.environment}.log", :trunc => false))
|
22
22
|
|
23
23
|
# Requiring all models
|
24
24
|
Dir.glob('app/models/*.rb').each { |f| require f }
|
File without changes
|
File without changes
|
File without changes
|
@@ -5,7 +5,7 @@ require 'daemons'
|
|
5
5
|
|
6
6
|
if ["run", "start", "stop", "restart"].include? ARGV[0]
|
7
7
|
command = ARGV[0]
|
8
|
-
env = "development"
|
8
|
+
env = ARGV[1] || "development"
|
9
9
|
else
|
10
10
|
env = ARGV[0] || "development"
|
11
11
|
case env
|
@@ -22,7 +22,7 @@ end
|
|
22
22
|
options = {
|
23
23
|
:ARGV => [command, '--', env],
|
24
24
|
:app_name => "#{Dir.pwd.split("/").last}",
|
25
|
-
:dir => "../tmp/
|
25
|
+
:dir => "../tmp/pids/",
|
26
26
|
:multiple => true,
|
27
27
|
:backtrace => true
|
28
28
|
}
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: julien51-babylon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- julien Genestoux
|
@@ -48,10 +48,10 @@ files:
|
|
48
48
|
- templates/babylon/config/dependencies.rb
|
49
49
|
- templates/babylon/config/routes.rb
|
50
50
|
- templates/babylon/script/component
|
51
|
-
- templates/babylon/
|
52
|
-
- templates/babylon/
|
53
|
-
- templates/babylon/
|
54
|
-
- templates/babylon/tmp/
|
51
|
+
- templates/babylon/log/test.log
|
52
|
+
- templates/babylon/log/development.log
|
53
|
+
- templates/babylon/log/production.log
|
54
|
+
- templates/babylon/tmp/pids/README
|
55
55
|
has_rdoc: true
|
56
56
|
homepage: http://github.com/julien51/babylon
|
57
57
|
post_install_message:
|