fontana_client_support 0.5.0 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MmI0ZWNiMzZkZDM1MTgzYWRkNjkyMTc2NTM5NGRiMGE3ODY0OTVlMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjlmOTZjYWY5ZDk1YmM2Nzc0OGUyYjkyODZiYzAzN2QxMGVhZGQxOA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODgyNjZlZGE1YjlkMTJjYzE3OTg1MzRjZTUxNDRkZDNlZjE1YzUwOGE2MGY5
|
10
|
+
NjY5M2I2MzRiNjYwZjBhMjE1YmYzYzAwNDFlMGVkYWMzM2FiYzc4NjQ4NTQx
|
11
|
+
NjI4MjNiNTQxNmEyN2MxOTVjYjNiZDI3MmExYmQwOTQ1N2MzZTg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWE2NzM2YzMxODg1ZDVjZmI5M2YzNmY5Y2Q0MTg0NzcyN2QyODUwYjczYTI3
|
14
|
+
MWNlZGM2MTNlYTAzYmJiMWU2YjljNjRiMGYxOGEyN2I5NGE1ZGY3ODc0NDcz
|
15
|
+
NjlmM2RkYjEyODNjY2Q2YjU4ZTU5OTg2MTY1NzVmNmJkMGU0ZWQ=
|
@@ -7,8 +7,8 @@ module FontanaClientSupport
|
|
7
7
|
def initialize(config = {})
|
8
8
|
@config = {
|
9
9
|
:DocumentRoot => File.join(FontanaClientSupport.root_dir, "config_server"),
|
10
|
-
:BindAddress => '127.0.0.1',
|
11
|
-
:Port => 80
|
10
|
+
:BindAddress => ENV['GSS_CONFIG_SERVER_ADDRESS'] || '127.0.0.1',
|
11
|
+
:Port => (ENV['GSS_CONFIG_SERVER_PORT'] || 80).to_i
|
12
12
|
}
|
13
13
|
@config.update(config)
|
14
14
|
end
|
@@ -35,12 +35,15 @@ module FontanaClientSupport
|
|
35
35
|
open(pid_file, "w") do |f|
|
36
36
|
f.write(Process.pid)
|
37
37
|
end
|
38
|
+
$stdout.reopen("/dev/null")
|
39
|
+
$stderr.reopen("/dev/null")
|
38
40
|
begin
|
39
41
|
self.new(options).launch
|
40
42
|
ensure
|
41
43
|
File.delete(pid_file)
|
42
44
|
end
|
43
45
|
end
|
46
|
+
# puts "#{Process.pid} launches child process by #{name}.start_daemon returns #{pid}"
|
44
47
|
pid
|
45
48
|
end
|
46
49
|
|
@@ -51,7 +54,6 @@ module FontanaClientSupport
|
|
51
54
|
Process.kill("INT", pid.to_i)
|
52
55
|
end
|
53
56
|
end
|
54
|
-
|
55
57
|
end
|
56
58
|
|
57
59
|
end
|
@@ -1,5 +1,8 @@
|
|
1
1
|
require 'fileutils'
|
2
2
|
|
3
|
+
require 'fontana_client_support'
|
4
|
+
extend Fontana::RakeUtils
|
5
|
+
|
3
6
|
namespace :config_server do
|
4
7
|
|
5
8
|
desc "launch server process in foreground mode"
|
@@ -17,4 +20,6 @@ namespace :config_server do
|
|
17
20
|
FontanaClientSupport::ConfigServer.stop_daemon
|
18
21
|
end
|
19
22
|
|
23
|
+
desc "stop and start server daemon"
|
24
|
+
task_sequential(:restart, [:"config_server:stop", :"config_server:start"])
|
20
25
|
end
|
@@ -1,6 +1,8 @@
|
|
1
1
|
require 'fontana_client_support'
|
2
2
|
include Fontana::ServerRake
|
3
3
|
|
4
|
+
extend Fontana::RakeUtils
|
5
|
+
|
4
6
|
namespace_with_fontana :server, :libgss_test do
|
5
7
|
|
6
8
|
fontana_task :launch_http_server
|
@@ -21,5 +23,5 @@ namespace :servers do
|
|
21
23
|
task :stop => :"server:shutdown_server_daemons"
|
22
24
|
|
23
25
|
desc "restart HTTP+HTTPS server daemons"
|
24
|
-
|
26
|
+
task_sequential(:restart, [:"servers:stop", :"servers:start"])
|
25
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fontana_client_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- akima
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|