elch_scan 0.1.1 → 0.1.2

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: df31e8053ac11b855133e883b59fbd94b31a783f
4
- data.tar.gz: e82ffcd31713fd2104d778a9e114deae3308243e
3
+ metadata.gz: 3079c9829e7b3dc28c655f690c152cb27b4bed7f
4
+ data.tar.gz: efb9d3275e18d932e31925ff69459d8c043800f6
5
5
  SHA512:
6
- metadata.gz: 80ca6f04d2f75accbb68c26906a8041d0bf6817d70393468c1a6a4d06379000db5af1bb4769eef498dfd10fb9f19299f4f393f92746b9efae03c4d4c38dc7334
7
- data.tar.gz: ef2357cff04247da706c6c52e56ad51c3b3b55420a8c2080ac224bb618a764a803dbe6f24427e98447652aad1437ad34ccb7c5cda7131d9ff2ba653c8d0176e8
6
+ metadata.gz: c9f0b75e0ac99d67f1af98dfc71cfc6eb19b07d57b1aeaa53f0de3e80c720c64b819fc44d8922c85d9640d33c8cecdf7d404ef9ee6dde225523a6cb7a93dbb36
7
+ data.tar.gz: 1e31fee81ad6047f32deca2d6ae4c54cd531a6f8cbda91a8c8f9a4ed9f95c4c38d0c9695417ff1a665157df31da98af29e4d648bfd1c2f465358a3014ad152f2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/bin/elch_scan CHANGED
@@ -1,14 +1,3 @@
1
- #!/bin/bash
2
-
3
- # That's __FILE__ in BASH :)
4
- # From: http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
5
- SOURCE="${BASH_SOURCE[0]}"
6
- while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
7
- MCLDIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
8
- SOURCE="$(readlink "$SOURCE")"
9
- [[ $SOURCE != /* ]] && SOURCE="$MCLDIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
10
- done
11
- PROJECT_ROOT="$( cd -P "$( dirname "$SOURCE" )"/.. && pwd )"
12
-
13
- # Actually run Heatmon
14
- cd $PROJECT_ROOT && bundle exec ruby elch_scan.rb "$@"
1
+ #!/usr/bin/env ruby
2
+ require "elch_scan"
3
+ ElchScan::Application.dispatch(ENV, ARGV)
data/bin/elch_scan.sh ADDED
@@ -0,0 +1,14 @@
1
+ #!/bin/bash
2
+
3
+ # That's __FILE__ in BASH :)
4
+ # From: http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
5
+ SOURCE="${BASH_SOURCE[0]}"
6
+ while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
7
+ MCLDIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
8
+ SOURCE="$(readlink "$SOURCE")"
9
+ [[ $SOURCE != /* ]] && SOURCE="$MCLDIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
10
+ done
11
+ PROJECT_ROOT="$( cd -P "$( dirname "$SOURCE" )"/.. && pwd )"
12
+
13
+ # Actually run script
14
+ cd $PROJECT_ROOT && bundle exec ruby elch_scan.rb "$@"
@@ -1,4 +1,4 @@
1
1
  module ElchScan
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  UPDATE_URL = "https://raw.githubusercontent.com/2called-chaos/elch_scan/master/VERSION"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elch_scan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sven Pachnit
@@ -114,6 +114,7 @@ email:
114
114
  - sven@bmonkeys.net
115
115
  executables:
116
116
  - elch_scan
117
+ - elch_scan.sh
117
118
  extensions: []
118
119
  extra_rdoc_files: []
119
120
  files:
@@ -124,6 +125,7 @@ files:
124
125
  - Rakefile
125
126
  - VERSION
126
127
  - bin/elch_scan
128
+ - bin/elch_scan.sh
127
129
  - doc/config.yml
128
130
  - doc/filter.rb
129
131
  - elch_scan.gemspec