db_mon 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9bc11defc6de646a4aa08b82d0d76dafe9806595
4
- data.tar.gz: 494f0498c08ca30250231f98ce52f1c6bdce9f69
3
+ metadata.gz: db8233adefc55485e2ac0d46582acd3fd958b45c
4
+ data.tar.gz: d1d4880b31f4b936becc1a2caadce4282f2317dd
5
5
  SHA512:
6
- metadata.gz: fdc5347fa4bef44a3de5cacc8cc248accec02beb3497c6fd83b530b75d950b64c6b4ec16c9b19b4c74ec36794581364c4f970df49bb2e569cbec00aecfd4ba92
7
- data.tar.gz: 99eaf319d11a02febd655c8127f740d263fd764a61f11dc99c056c30b4d4fe0862c3e5b1900814a383978a2c9a93d1e5857e1758c73d3bb144bf54f230556de6
6
+ metadata.gz: aca2f5bb44d25f08a960ae346b8ad6eed49a7bcf84ccb9ef716001164ae95216b5d01b84c459699d4e8fc180877ede06007abea8c03e516988fc2ada340a82ab
7
+ data.tar.gz: ba0de946719cb3f56e59c86748357be882bfdf204ad1295fb8ef4bc6881a6fcdeb39b4a51543e794970d00be6428467c0f4ad7bb2b311c935c3e0c527e5bc7d1
data/bin/dbmon CHANGED
@@ -5,5 +5,4 @@ require 'daemons'
5
5
 
6
6
 
7
7
  path_to_file = File.expand_path('../../lib/db_mon.rb', __FILE__)
8
- puts path_to_file
9
8
  Daemons.run(path_to_file, dir_mode: :normal, dir: '/tmp')
@@ -9,13 +9,13 @@ options = {}
9
9
 
10
10
  optparse = OptionParser.new do |opts|
11
11
  opts.banner = "Usage: dbmon -C <path to config file>"
12
- opts.on('-C', '--config FILE', 'Full path to configuration file') do |file|
12
+ opts.on('-C', '--config FILE', 'Absolute path to configuration file') do |file|
13
13
  options[:config_file] = file
14
14
  end
15
15
  end
16
16
  optparse.parse!
17
17
 
18
18
  raise "No config file provided" unless options[:config_file]
19
- config = YAML::load(File.read(options[:config_file]))
19
+ config = YAML::load(File.read(File.expand_path(options[:config_file])))
20
20
  monitor = DbMon::Runner.new(config).monitor
21
21
  monitor.monitor_table
@@ -1,3 +1,3 @@
1
1
  module DbMon
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: db_mon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Lewis