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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cf_light_api/worker.rb +4 -4
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8e85b2a89b5202c5f3c51425216b7a46b01e91c
4
- data.tar.gz: 649d7c52fa04847678c579c4611fb01c95ba5209
3
+ metadata.gz: 14af134ef675a127dd3ecb69207b31cb84a8f62b
4
+ data.tar.gz: 8d95ba75469242f77e6d3cfa94b525ba07b5e3fd
5
5
  SHA512:
6
- metadata.gz: 011d1a46ecc5fc1a6d682a901f4397110a9579d1e6f3bbe29cbb24587d8fc10594b8a88f947d886f7efc74a22b645ddcd04a10eb5e4e42e48b6574a0975ab565
7
- data.tar.gz: fa272193848c2b31fbccf0e467cb10cddca059dbda08019a09caa334b047feac9951b78053c009b01b734b28503b8c461a3f72b5b2cf0a061e75aa6b93f4840b
6
+ metadata.gz: 9c79d9efb50c9fd98ee3dd0dcb9e68d0c33a2015c452c0bc7e5a0adb3487949beb324d5e90a312a812139f9cc28e6ce81ff5eb07a1fbb72c303306b3f0c5c433
7
+ data.tar.gz: eb59bdcaeefb772e73503a3941bc383714301b221e5c41f94b68e68d4d17cb604f1ff56fb917992241aff8010ebf18c08961223b4426fdd1204260f3d3325c14
@@ -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, :in_processes => PARALLEL_MAPS) do |org|
94
+ Parallel.map(cf_client.organizations, :in_threads=> PARALLEL_MAPS) do |org|
95
95
  org_name = org.name
96
- Parallel.map(org.spaces, :in_processes => PARALLEL_MAPS) do |space|
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, :in_processes => PARALLEL_MAPS) do |app|
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, :in_processes => PARALLEL_MAPS) do |org|
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.2
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-08 00:00:00.000000000 Z
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.0.14
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