rbg 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/rbg +2 -2
- data/lib/rbg.rb +8 -2
- metadata +4 -4
data/bin/rbg
CHANGED
@@ -27,9 +27,9 @@ begin
|
|
27
27
|
when 'start'
|
28
28
|
Rbg.start(config_file, {:background => true, :environment => environment})
|
29
29
|
when 'stop'
|
30
|
-
Rbg.stop(config_file)
|
30
|
+
Rbg.stop(config_file, {:environment => environment})
|
31
31
|
when 'reload'
|
32
|
-
Rbg.reload(config_file)
|
32
|
+
Rbg.reload(config_file, {:environment => environment})
|
33
33
|
else
|
34
34
|
die
|
35
35
|
end
|
data/lib/rbg.rb
CHANGED
@@ -256,7 +256,10 @@ module Rbg
|
|
256
256
|
end
|
257
257
|
|
258
258
|
# Stop the running instance
|
259
|
-
def stop(config_file)
|
259
|
+
def stop(config_file, options = {})
|
260
|
+
options[:environment] ||= "development"
|
261
|
+
$rbg_env = options[:environment].dup
|
262
|
+
|
260
263
|
# Define the config file then load it
|
261
264
|
self.config_file = config_file
|
262
265
|
self.load_config
|
@@ -272,7 +275,10 @@ module Rbg
|
|
272
275
|
end
|
273
276
|
|
274
277
|
# Reload the running instance
|
275
|
-
def reload(config_file)
|
278
|
+
def reload(config_file, options = {})
|
279
|
+
options[:environment] ||= "development"
|
280
|
+
$rbg_env = options[:environment].dup
|
281
|
+
|
276
282
|
# Define the config file then load it
|
277
283
|
self.config_file = config_file
|
278
284
|
self.load_config
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 61
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 3
|
10
|
+
version: 0.9.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Charlie Smurthwaite
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-11-03 00:00:00 +00:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|