cf_light_api 1.6.2 → 1.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cf_light_api/worker.rb +4 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14af134ef675a127dd3ecb69207b31cb84a8f62b
|
4
|
+
data.tar.gz: 8d95ba75469242f77e6d3cfa94b525ba07b5e3fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c79d9efb50c9fd98ee3dd0dcb9e68d0c33a2015c452c0bc7e5a0adb3487949beb324d5e90a312a812139f9cc28e6ce81ff5eb07a1fbb72c303306b3f0c5c433
|
7
|
+
data.tar.gz: eb59bdcaeefb772e73503a3941bc383714301b221e5c41f94b68e68d4d17cb604f1ff56fb917992241aff8010ebf18c08961223b4426fdd1204260f3d3325c14
|
data/lib/cf_light_api/worker.rb
CHANGED
@@ -91,12 +91,12 @@ def send_data_to_graphite(data, graphite)
|
|
91
91
|
end
|
92
92
|
|
93
93
|
def get_app_data(cf_client, graphite)
|
94
|
-
Parallel.map(cf_client.organizations, :
|
94
|
+
Parallel.map(cf_client.organizations, :in_threads=> PARALLEL_MAPS) do |org|
|
95
95
|
org_name = org.name
|
96
|
-
Parallel.map(org.spaces, :
|
96
|
+
Parallel.map(org.spaces, :in_threads => PARALLEL_MAPS) do |space|
|
97
97
|
space_name = space.name
|
98
98
|
@logger.info "Getting app data for apps in #{org_name}:#{space_name}..."
|
99
|
-
Parallel.map(space.apps, :
|
99
|
+
Parallel.map(space.apps, :in_threads=> PARALLEL_MAPS) do |app|
|
100
100
|
begin
|
101
101
|
# It's possible for an app to have been terminated before this stage is reached.
|
102
102
|
formatted_app_data = format_app_data(app, org_name, space_name)
|
@@ -113,7 +113,7 @@ def get_app_data(cf_client, graphite)
|
|
113
113
|
end
|
114
114
|
|
115
115
|
def get_org_data(cf_client)
|
116
|
-
Parallel.map( cf_client.organizations, :
|
116
|
+
Parallel.map( cf_client.organizations, :in_threads=> PARALLEL_MAPS) do |org|
|
117
117
|
org_name = org.name
|
118
118
|
@logger.info "Getting org data for #{org_name}..."
|
119
119
|
# The CFoundry client returns memory_limit in MB, so we need to normalise to bytes to match the Apps.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cf_light_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Springer Platform Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cfoundry
|
@@ -116,9 +116,9 @@ executables:
|
|
116
116
|
extensions: []
|
117
117
|
extra_rdoc_files: []
|
118
118
|
files:
|
119
|
-
- ./lib/sinatra/cf_light_api.rb
|
120
119
|
- ./lib/cf_light_api/redis.rb
|
121
120
|
- ./lib/cf_light_api/worker.rb
|
121
|
+
- ./lib/sinatra/cf_light_api.rb
|
122
122
|
- bin/cf_light_api
|
123
123
|
homepage: https://github.com/springerpe/cf-light-api
|
124
124
|
licenses:
|
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
142
|
rubyforge_project:
|
143
|
-
rubygems_version: 2.
|
143
|
+
rubygems_version: 2.4.6
|
144
144
|
signing_key:
|
145
145
|
specification_version: 4
|
146
146
|
summary: A super lightweight API for reading App and Org data from CloudFoundry, cached
|