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 +4 -4
- data/CHANGELOG.md +4 -0
- data/VERSION +1 -1
- data/lib/parse_log_drain/drain.rb +4 -3
- data/parse_log_drain.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed7293236b03380e468877612036d0d05b0c402a
|
4
|
+
data.tar.gz: 5025c2234c8eb5663d1713f76318ca46b2cbacdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
0.2.0
|
@@ -1,12 +1,13 @@
|
|
1
1
|
require 'fileutils'
|
2
|
+
require 'json'
|
2
3
|
|
3
|
-
|
4
|
-
|
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
|
data/parse_log_drain.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
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.
|
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-
|
11
|
+
date: 2015-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|