mtr_monitor 0.5.3 → 0.5.4

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: 53ac5420901d290b20179b5d1a37b89ad9baee80
4
- data.tar.gz: b52e331229bf4aea692801c319a195ff583cbd1c
3
+ metadata.gz: 92fd8474c303a47832df58c0e42882ea691e3ed8
4
+ data.tar.gz: b25e2265fb85fb8ba2e2c94cf87d89b9efc1e4fa
5
5
  SHA512:
6
- metadata.gz: 78ed15a4b3a15505e8fdb10e67da10f1847d3a79cf2856b0fe87b577727fef9195315eb6822d34856c8d7b64443f2359ddff42bf1f0d5dc88739a99b3d7e19e4
7
- data.tar.gz: 803d578cb195d976238d78026f5a78113f1f9d33b6acc1209f017ffab3062e69d76143c93046c3761b6d205d0f8675af43c78d3f38017e9f6ff47f45f5603106
6
+ metadata.gz: 16966ca4a380502bbba35277e6000f4dee30e286222f89bbc76610d42eee20baf0b6beccc5187f038e682ee77bb8f3733fa909556a23968333263682d922ce41
7
+ data.tar.gz: e33d5400124b160f54c64c1e2ca5e47c7515ce1deb6fbff648774e9aafeb6a3152ef1bb1c889d67dce870ddac4f25155af10efabee06576bfa3084db0523876d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mtr_monitor (0.5.3)
4
+ mtr_monitor (0.5.4)
5
5
  rt-watchman (~> 0.10.0)
6
6
 
7
7
  GEM
data/exe/mtr_report CHANGED
@@ -1,5 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ # https://blog.bigbinary.com/2009/07/04/stdout-sync-true-to-flush-output-immediately.html
4
+ $stdout.sync = true
5
+
3
6
  require "mtr_monitor"
4
7
 
5
8
  name = ENV.fetch("NAME")
@@ -1,3 +1,3 @@
1
1
  module MtrMonitor
2
- VERSION = "0.5.3"
2
+ VERSION = "0.5.4"
3
3
  end
data/lib/mtr_monitor.rb CHANGED
@@ -26,8 +26,8 @@ module MtrMonitor
26
26
  puts "S3 Path : #{@s3_path}"
27
27
 
28
28
  run "sudo mkdir -p /var/log/mtr"
29
- run "sudo bash -c 'mtr --report #{@mtr_options} #{@domain} > #{@log_path}'"
30
- run "AWS_ACCESS_KEY_ID='#{@aws_access_key_id}' AWS_SECRET_ACCESS_KEY='#{@aws_secret_access_key}' ~/.local/bin/aws s3 cp #{@log_path} #{@s3_path}"
29
+ run "sudo mtr --report #{@mtr_options} #{@domain} > #{@log_path}"
30
+ run "AWS_ACCESS_KEY_ID='#{@aws_access_key_id}' AWS_SECRET_ACCESS_KEY='#{@aws_secret_access_key}' aws s3 cp #{@log_path} #{@s3_path}"
31
31
  end
32
32
 
33
33
  def submit_metrics
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mtr_monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - RenderedText DevOps Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-27 00:00:00.000000000 Z
11
+ date: 2017-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rt-watchman