parse_log_drain 0.1.1 → 0.2.0

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: 00cd28367df9644a37226164fd3dc079417b7890
4
- data.tar.gz: cb73e311bfd9a955f42f374759d8033a3fdb8272
3
+ metadata.gz: ed7293236b03380e468877612036d0d05b0c402a
4
+ data.tar.gz: 5025c2234c8eb5663d1713f76318ca46b2cbacdf
5
5
  SHA512:
6
- metadata.gz: 8a80f6812798836a2277acd4638b908986350596a682ddc6227ba26c172ea1388ba70195c033d59556161ec292610d5fe69cdee9a056042041d3bb343b81eebb
7
- data.tar.gz: 07402738054db942e2ad73688d41155ac7b68de289481c6650de11d292438675a636969ba7976dbde6df360db918b87079c05834b5f151991dcf83186d827687
6
+ metadata.gz: ad955884d6397909113ae48120b145681ef912fc36ba57a15f472c0f4023484393b7d0533b4d8ad8ea47298f533cf6ba09dfa3db04d2a2bbf96ec836c02f91e3
7
+ data.tar.gz: 00514fb71c1556b20a7dfedd4fabb8b36b24cdb199f3649f171a2bebd9e1915002056f164ee7392921ad7150794dd084fb062f2c4dbcd3025223d58531fece27
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## [0.2.0](https://github.com/jasonhutchens/parse_log_drain/tree/0.2.0) (2015-07-16)
4
+
5
+ [Full Changelog](https://github.com/jasonhutchens/parse_log_drain/compare/0.1.1...0.2.0)
6
+
3
7
  ## [0.1.1](https://github.com/jasonhutchens/parse_log_drain/tree/0.1.1) (2015-06-27)
4
8
 
5
9
  [Full Changelog](https://github.com/jasonhutchens/parse_log_drain/compare/0.1.0...0.1.1)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.2.0
@@ -1,12 +1,13 @@
1
1
  require 'fileutils'
2
+ require 'json'
2
3
 
3
- results = `cd #{ARGV.first}; parse list`
4
- exit unless $?.exitstatus == 0
4
+ parse_config = File.join(ARGV.first, 'config', 'global.json')
5
+ blob = File.read(parse_config)
6
+ apps = JSON.parse(blob)["applications"].keys - ["_default"]
5
7
 
6
8
  log_dir = File.join(ARGV.first, "logs")
7
9
  FileUtils.mkdir_p(log_dir)
8
10
 
9
- apps = results.gsub(/^\*/, " ").split("\n").slice(1..-1).map(&:strip)
10
11
  threads =
11
12
  apps.map do |app|
12
13
  Thread.new do
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: parse_log_drain 0.1.1 ruby lib
5
+ # stub: parse_log_drain 0.2.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "parse_log_drain"
9
- s.version = "0.1.1"
9
+ s.version = "0.2.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Jason Hutchens"]
14
- s.date = "2015-06-27"
14
+ s.date = "2015-07-16"
15
15
  s.description = "Never loose a log again."
16
16
  s.email = "jasonhutchens@gmail.com"
17
17
  s.executables = ["parse_log_drain"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parse_log_drain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Hutchens
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-27 00:00:00.000000000 Z
11
+ date: 2015-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print