cf_light_api 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3a2339a3ba1a090cc92e750dbf9c7989b65e6f2
4
- data.tar.gz: 4aeafe0baf9434fbb864d0935ddb2c229bd13fc4
3
+ metadata.gz: 55007b1bca390e4d2ee89d8afd70ab07afac0198
4
+ data.tar.gz: 5985fa004f7a49c1a72b9ee119206e871ecab1e7
5
5
  SHA512:
6
- metadata.gz: 5938dc292f80b5e0c498bf1dbd7f031a3c413552cee9b860b54528a974edb85da0031c889213a5938e3eabfaba947f3adf8e463ce43af22050bd4829a23c8ee6
7
- data.tar.gz: da3062575af4938552a00d1003f94c03d7e9f6c1c65c8c235ce4b788a3001d838ad4a56251c5d9021779a6eaffe8de74d3965f8f05842885b6a6cd619aa30897
6
+ metadata.gz: a78ea8ca53b2774edbd4bede5264a408088c3a514c81e5114386c1b52b7adf613568c514f94ef978d2c6a90797083769229d2ba5c7f1975c470de86abaa45f69
7
+ data.tar.gz: cd31210e3cffc3b61cafbca46afb4312225a177f9575b03623118e6d66a73ba71160a7fd35a65f6906d3a7c931ef9aa72f58b0ebb5c79d878b307e89ab981a54
data/bin/cf_light_api CHANGED
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ $stdout.sync = true
4
+
3
5
  puts '[cf_light_api] Starting CF Light API and worker...'
4
6
 
5
7
  require_relative '../lib/cf_light_api/redis.rb'
@@ -9,7 +9,7 @@ require 'parallel'
9
9
  end
10
10
 
11
11
  scheduler = Rufus::Scheduler.new
12
- scheduler.every '5m', :first_in => '5s', :overlap => false, :timeout => '15m' do
12
+ scheduler.every '5m', :first_in => '5s', :overlap => false, :timeout => '5m' do
13
13
  begin
14
14
  if locked?
15
15
  puts "[cf_light_api:worker] Data update is already running in another worker, skipping..."
@@ -36,9 +36,9 @@ scheduler.every '5m', :first_in => '5s', :overlap => false, :timeout => '15m' do
36
36
  }
37
37
  end.flatten
38
38
 
39
- app_data = Parallel.map( cf_client.organizations, :in_processes => 4) do |org|
40
- Parallel.map( org.spaces, :in_processes => 4) do |space|
41
- Parallel.map( space.apps, :in_processes => 4) do |app|
39
+ app_data = Parallel.map(cf_client.organizations, :in_processes => 4) do |org|
40
+ Parallel.map(org.spaces, :in_processes => 4) do |space|
41
+ Parallel.map(space.apps, :in_processes => 4) do |app|
42
42
  begin
43
43
  # It's possible for an app to have been terminated before this stage is reached.
44
44
  format_app_data(app, org.name, space.name)
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.2.0
4
+ version: 1.2.1
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-03-09 00:00:00.000000000 Z
11
+ date: 2015-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cfoundry