process_monitoring 1.0.2 → 1.1.0

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.
@@ -4,13 +4,13 @@ require 'net/http'
4
4
  require 'thin'
5
5
  require 'sinatra'
6
6
 
7
+ require 'content_server/globals'
7
8
  require 'params'
8
9
 
9
10
  # Set up event machine to exit on ctrl+c.
10
11
  EventMachine.schedule do
11
12
  trap("INT") do
12
13
  puts "Caught SIGINT"
13
- puts "EventMachine:#{EventMachine}"
14
14
  # EventMachine.stop # this is useless
15
15
  exit # exit # this stops the EventMachine
16
16
  end
@@ -19,6 +19,7 @@ end
19
19
  # This module export process info to http port, that way the user may access with the
20
20
  # browser to the process to see what is happening inside, what is it's state and parameters.
21
21
  module MonitoringInfo
22
+
22
23
  Params.integer('process_monitoring_web_port', 5555,
23
24
  'The port from which monitoring data will be served as http.')
24
25
 
@@ -28,7 +29,7 @@ module MonitoringInfo
28
29
  def initialize()
29
30
  @web_interface = Sinatra.new {
30
31
  set :bind, '0.0.0.0'
31
- get('/') { MonitoringInfo.get_json(Params['process_vars'].clone) }
32
+ get('/') { MonitoringInfo.get_json(::ContentServer::Globals.process_vars.clone) }
32
33
  }
33
34
  @web_interface.set(:port, Params['process_monitoring_web_port'])
34
35
  @thread = Thread.new do
@@ -1,3 +1,3 @@
1
1
  module ProcessMonitoring
2
- VERSION = "1.0.2"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: process_monitoring
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-12 00:00:00.000000000 Z
12
+ date: 2013-06-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine